20 lines
614 B
Puppet
20 lines
614 B
Puppet
## confdroid_nagios::server::service.pp
|
|
# Module name: confdroid_nagios
|
|
# Author: 12ww1160 (12ww1160@confdroid.com)
|
|
# @summary Class manages services for the confdroid_nagios module.
|
|
###############################################################################
|
|
class confdroid_nagios::server::service (
|
|
|
|
) inherits confdroid_nagios::params {
|
|
require confdroid_nagios::server::files
|
|
if $ng_nagios_server == $fqdn {
|
|
service { $ng_nagios_service:
|
|
ensure => running,
|
|
name => $ng_nagios_service,
|
|
enable => true,
|
|
hasrestart => true,
|
|
hasstatus => true,
|
|
}
|
|
}
|
|
}
|