From 2e465ce63f4b3136a0a11667cd1ed1cf700614f4 Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Fri, 13 Feb 2026 15:27:27 +0100 Subject: [PATCH] OP#421 restructure --- manifests/main/install.pp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/manifests/main/install.pp b/manifests/main/install.pp index 3d93ead..388c46c 100644 --- a/manifests/main/install.pp +++ b/manifests/main/install.pp @@ -6,8 +6,9 @@ class confdroid_nagios::main::install ( ) inherits confdroid_nagios::params { + require confdroid_resources + 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 require confdroid_apache @@ -22,8 +23,8 @@ 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, + package { $ng_reqpackages_client: + ensure => $ng_pkg_ensure, } # if we want to use NRPE on clients, install it