module-icinga2/manifests/nrpe/service.pp
Steven Bambling fba84ed798 style guide fixes
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:08 -07:00

20 linhas
692 B
Puppet

# Class: icinga2::nrpe::service
#
# This class manges the daemons/services for the server components of Icinga.
#
# Parameters:
class icinga2::nrpe::service inherits icinga2::nrpe {
include icinga2::nrpe
#Service resource for NRPE.
#This references the daemon name we defined in the icinga2::params class based on the OS:
service {$icinga2::params::nrpe_daemon_name:
ensure => running,
enable => true, #Enable the service to start on system boot
require => Package[$icinga2::params::icinga2_client_packages],
subscribe => Class['icinga2::nrpe::config'], #Subscribe to the client::config class so the service gets restarted if any config files change
}
}