nrpe.pp 942 B

123456789101112131415161718192021222324
  1. # Class: icinga2::nrpe
  2. #
  3. # This subclass manages Icinga client components. This class is just the entry point for Puppet to get at the
  4. # icinga2::nrpe:: subclasses.
  5. #
  6. class icinga2::nrpe (
  7. $nrpe_listen_port = $icinga2::params::nrpe_listen_port,
  8. $nrpe_debug_level = $icinga2::params::nrpe_debug_level,
  9. $nrpe_log_facility = $icinga2::params::nrpe_log_facility,
  10. $nrpe_command_timeout = $icinga2::params::nrpe_command_timeout,
  11. $nrpe_connection_timeout = $icinga2::params::nrpe_connection_timeout,
  12. $nrpe_allowed_hosts = $icinga2::params::nrpe_allowed_hosts
  13. ) inherits icinga2::params {
  14. #Apply our classes in the right order. Use the squiggly arrows (~>) to ensure that the
  15. #class left is applied before the class on the right and that it also refreshes the
  16. #class on the right.
  17. class {'icinga2::nrpe::install':} ~>
  18. class {'icinga2::nrpe::config':} ~>
  19. class {'icinga2::nrpe::service':}
  20. }