OP#436 mv client installs

This commit is contained in:
2026-03-09 16:00:51 +01:00
parent 72b2e5462c
commit fd20a240b8
3 changed files with 11 additions and 8 deletions

View File

@@ -11,6 +11,11 @@ class confdroid_nagios::client::target (
ensure => $ng_pkg_ensure, ensure => $ng_pkg_ensure,
} }
# if we want to use NRPE on clients, install it
if $ng_include_nrpe == true {
require confdroid_nrpe
}
@@nagios_host { $fqdn: @@nagios_host { $fqdn:
ensure => $ng_ping_ensure, ensure => $ng_ping_ensure,
alias => $hostname, alias => $hostname,

View File

@@ -16,14 +16,13 @@ class confdroid_nagios::main::install (
package { $ng_reqpackages_server: package { $ng_reqpackages_server:
ensure => $ng_pkg_ensure, ensure => $ng_pkg_ensure,
} }
}
package { $ng_reqpackages_client: package { $ng_reqpackages_client:
ensure => $ng_pkg_ensure, ensure => $ng_pkg_ensure,
} }
# if we want to use NRPE on clients, install it if $ng_include_nrpe == true {
if $ng_include_nrpe == true { require confdroid_nrpe
require confdroid_nrpe }
} }
} }

View File

@@ -7,7 +7,6 @@ class confdroid_nagios::server::nagios (
) inherits confdroid_nagios::params { ) inherits confdroid_nagios::params {
if $ng_nagios_server == $fqdn { if $ng_nagios_server == $fqdn {
@@nagios_service { 'check_nagios_localhost': @@nagios_service { 'check_nagios_localhost':
check_command => "check_nagios!${ng_spool_dir}/status.dat!5!/usr/sbin/nagios", check_command => "check_nagios!${ng_spool_dir}/status.dat!5!/usr/sbin/nagios",
use => 'generic-service', use => 'generic-service',