module-icinga2/manifests/nrpe/install.pp
Steven Bambling 3009c0be8d sytle guide fixes
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:07 -07:00

50 рядки
1,2 КіБ
Puppet

# Class: icinga2::nrpe::install
#
# This subclass installs NRPE and Nagios plugin packages on Icinga client machines.
#
class icinga2::nrpe::install inherits icinga2::nrpe {
include icinga2::nrpe
#Apply our subclasses in the right order. Use the squiggly arrows (~>) to ensure that the
#class left is applied before the class on the right and that it also refreshes the
#class on the right.
class {'icinga2::nrpe::install::repos':} ~>
class {'icinga2::nrpe::install::packages':} ~>
class {'icinga2::nrpe::install::execs':}
}
##################
#Package repositories
##################
class icinga2::nrpe::install::repos inherits icinga2::nrpe {
include icinga2::nrpe
#repository resources here
}
##################
# Packages
##################
class icinga2::nrpe::install::packages inherits icinga2::nrpe {
include icinga2::nrpe
#Install the packages we specified in the ::params class:
package {$icinga2::params::icinga2_client_packages:
ensure => installed,
provider => $icinga2::params::package_provider,
install_options => $client_plugin_package_install_options,
}
}
##################
# Execs
##################
class icinga2::nrpe::install::execs {
#exec resources here
}