nrpe.pp 1.2 KB

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