OP#407 initial commit with reset
This commit is contained in:
@@ -1,42 +0,0 @@
|
||||
## 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,
|
||||
}
|
||||
|
||||
# if we want to use NRPE, install it
|
||||
|
||||
if $ng_include_nrpe == true {
|
||||
require cd_nrpe
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user