## confdroid_nagios::main::install.pp # Module name: confdroid_nagios # Author: 12ww1160 (12ww1160@confdroid.com) # @summary Class manages installation matters for the confdroid_nagios module. ############################################################################### class confdroid_nagios::main::install ( ) inherits confdroid_nagios::params { require confdroid_resources if $ng_nagios_server == $fqdn { # if our FQDN matches the configured Nagios server FQDN, install both server- # and client packages.We'll need httpd installed require confdroid_apache package { $ng_reqpackages_server: ensure => $ng_pkg_ensure, } package { $ng_reqpackages_client: ensure => $ng_pkg_ensure, } if $ng_include_nrpe == true { require confdroid_nrpe } } # if we are not the nagios server, install only client packages if $fqdn != $ng_nagios_server { package { $ng_reqpackages_client: ensure => $ng_pkg_ensure, } # if we want to use NRPE on clients, install it if $ng_include_nrpe == true { require confdroid_nrpe } } }