Files
confdroid_nagios/manifests/main/install.pp

43 lines
980 B
ObjectPascal
Raw Normal View History

2017-07-20 14:47:24 +01:00
## cd_nagios::main::install.pp
# Module name: cd_nagios
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
# @summary Class manage all aspects of installing binaries required for
# cd_nagios
###############################################################################
class cd_nagios::main::install (
) inherits cd_nagios::params {
require cd_resources
# if our FQDN matches the configured Nagios server FQDN, install both server-
# and client packages.
if $::fqdn == $ng_nagios_server {
# we'll need httpd installed
require cd_apache
package {$reqpackages_server:
ensure => $pkg_ensure,
}
package {$reqpackages_client:
ensure => $pkg_ensure,
}
}
# if we are not the nagios server, install client packages
if $::fqdn != $ng_nagios_server {
package {$reqpackages_client:
ensure => $pkg_ensure,
}
2017-07-28 13:16:40 +01:00
# if we want to use NRPE, install it
2017-07-20 14:47:24 +01:00
if $ng_include_nrpe == true {
2017-07-28 13:49:05 +01:00
require cd_nrpe
2017-07-20 14:47:24 +01:00
}
}
}