nrpe.pp 1.3 KB

123456789101112131415161718192021222324252627282930
  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. $nrpe_allow_command_argument_processing = $icinga2::params::allow_command_argument_processing,
  14. $nrpe_purge_unmanaged = $icinga2::params::nrpe_purge_unmanaged,
  15. ) inherits icinga2::params {
  16. #Do some validation of the parameters that are passed in:
  17. validate_string($nrpe_log_facility)
  18. validate_array($nrpe_allowed_hosts)
  19. #Apply our classes in the right order. Use the squiggly arrows (~>) to ensure that the
  20. #class left is applied before the class on the right and that it also refreshes the
  21. #class on the right.
  22. class {'icinga2::nrpe::install':} ~>
  23. class {'icinga2::nrpe::config':} ~>
  24. class {'icinga2::nrpe::service':}
  25. }