Puppet Class: psick::windows::services
- Defined in:
- manifests/windows/services.pp
Overview
Manages Windows services using Puppet service type
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'manifests/windows/services.pp', line 2
class psick::windows::services (
Hash $managed = {},
Hash $defaults = {},
Boolean $use_defaults = true,
Boolean $manage = $psick::manage,
Boolean $noop_manage = $psick::noop_manage,
Boolean $noop_value = $psick::noop_value,
) {
if $manage {
if $noop_manage {
noop($noop_value)
}
$services = $use_defaults ? {
true => $managed + $defaults,
false => $managed,
}
$services.each |$k,$v| {
service { $k:
* => $v,
}
}
}
}
|