install.pp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Class: icinga2::nrpe::install
  2. #
  3. # This subclass installs NRPE and Nagios plugin packages on Icinga client machines.
  4. #
  5. class icinga2::nrpe::install inherits icinga2::nrpe {
  6. include icinga2::nrpe
  7. #Apply our subclasses in the right order. Use the squiggly arrows (~>) to ensure that the
  8. #class left is applied before the class on the right and that it also refreshes the
  9. #class on the right.
  10. class {'icinga2::nrpe::install::repos':} ~>
  11. class {'icinga2::nrpe::install::packages':} ~>
  12. class {'icinga2::nrpe::install::execs':}
  13. }
  14. ##################
  15. #Package repositories
  16. ##################
  17. class icinga2::nrpe::install::repos inherits icinga2::nrpe {
  18. include icinga2::nrpe
  19. #repository resources here
  20. }
  21. ##################
  22. # Packages
  23. ##################
  24. class icinga2::nrpe::install::packages inherits icinga2::nrpe {
  25. include icinga2::nrpe
  26. #Install the packages we specified in the ::params class:
  27. package {$icinga2::params::icinga2_client_packages:
  28. ensure => installed,
  29. provider => $icinga2::params::package_provider,
  30. install_options => $icinga2::params::client_plugin_package_install_options,
  31. }
  32. }
  33. ##################
  34. # Execs
  35. ##################
  36. class icinga2::nrpe::install::execs {
  37. #exec resources here
  38. }