Puppet Class: system::services
- Defined in:
- manifests/services.pp
Overview
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'manifests/services.pp', line 1
class system::services (
$config = undef,
$schedule = $::system::schedule,
) {
$defaults = {
ensure => 'running',
hasrestart => true,
hasstatus => true,
schedule => $schedule,
}
if $config {
create_resources(service, $config, $defaults)
}
else {
$hiera_config = hiera_hash('system::services', undef)
if $hiera_config {
create_resources(service, $hiera_config, $defaults)
}
}
}
|