Puppet Class: choria::service
- Defined in:
- manifests/service.pp
Overview
Manages the ‘choria-server` service
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/service.pp', line 4
class choria::service {
assert_private()
if $choria::manage_service {
if $choria::server {
service{$choria::server_service_name:
ensure => "running",
enable => $choria::server_service_enable,
}
Concat["${choria::config::_config_dir}/policies/groups"] ~> Service[$choria::server_service_name]
if $choria::manage_mcollective {
# Ensures that module plugin changes will restart choria
Mcollective::Module_plugin <| |> ~> Service[$choria::server_service_name]
}
# Without this when a mcollective plugin is removed if purge is on the service
# would not be restarted, unfortunate side effect that a client uninstall will
# also yield a restart
File<| tag == "mcollective::plugin_dirs" |> ~> Service[$choria::server_service_name]
}
}
}
|