OP#421 add install section
This commit is contained in:
@@ -1,12 +1,25 @@
|
||||
## confdroid_nagios::main::install.pp
|
||||
# Module name: confdroid_nagios
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manaages main configuration for the confdroid_nagios module.
|
||||
# @summary Class manages main configuration for the confdroid_nagios module.
|
||||
###############################################################################
|
||||
class confdroid_nagios::main::install (
|
||||
|
||||
) inherits confdroid_nagios::params {
|
||||
if $ng_nagios_server == $fqdn {
|
||||
#config here
|
||||
require confdroid_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 confdroid_apache
|
||||
|
||||
package {$ng_reqpackages_server:
|
||||
ensure => $ng_pkg_ensure,
|
||||
}
|
||||
package {$ng_reqpackages_client:
|
||||
ensure => $ng_pkg_ensure,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user