Puppet Class: psick::services
- Defined in:
- manifests/services.pp
Overview
Manages services and custom init/systemd scripts
This class provides a wrapper for psick services defines
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'manifests/services.pp', line 5
class psick::services (
Hash $init_scripts = {},
Hash $systemd_scripts = {},
Boolean $manage = $psick::manage,
Boolean $noop_manage = $psick::noop_manage,
Boolean $noop_value = $psick::noop_value,
) {
if $manage {
if $noop_manage {
noop($noop_value)
}
if $facts['kernel'] == 'Linux' {
$init_scripts.each |$k,$v| {
psick::services::init_script { $k:
* => $v,
}
}
$systemd_scripts.each |$k,$v| {
psick::services::systemd_script { $k:
* => $v,
}
}
}
}
}
|