OP#421 restructure

This commit is contained in:
2026-02-13 14:57:03 +01:00
parent 178cd65db1
commit 8a73c927f9
5 changed files with 53 additions and 68 deletions

View File

@@ -9,8 +9,7 @@ class confdroid_nagios::main::install (
if $ng_nagios_server == $fqdn {
require confdroid_resources
# if our FQDN matches the configured Nagios server FQDN, install both server-
# and client packages.
# we'll need httpd installed
# and client packages.We'll need httpd installed
require confdroid_apache
package { $ng_reqpackages_server:
@@ -22,14 +21,12 @@ class confdroid_nagios::main::install (
}
# if we are not the nagios server, install only client packages
if $fqdn != $ng_nagios_server {
package { $reqpackages_client:
ensure => $pkg_ensure,
}
# if we want to use NRPE, install it
# if we want to use NRPE on clients, install it
if $ng_include_nrpe == true {
require cd_nrpe
}