OP#421 fix installation section

This commit is contained in:
2026-02-13 13:46:27 +01:00
parent 5ded4807fc
commit e49dcd0972
2 changed files with 175 additions and 166 deletions

View File

@@ -10,16 +10,28 @@ class confdroid_nagios::main::install (
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
# we'll need httpd installed
require confdroid_apache
package {$ng_reqpackages_server:
ensure => $ng_pkg_ensure,
}
package {$ng_reqpackages_client:
ensure => $ng_pkg_ensure,
}
package {$ng_reqpackages_server:
ensure => $ng_pkg_ensure,
}
package {$ng_reqpackages_client:
ensure => $ng_pkg_ensure,
}
}
# 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 $ng_include_nrpe == true {
require cd_nrpe
}
}
}