diff options
author | varac <varacanero@zeromail.org> | 2013-01-25 16:08:17 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-01-25 16:08:17 +0100 |
commit | 8b3c464eeb29f21c4f8119fc3a4ac7b7140878aa (patch) | |
tree | 61994231846c1561e1894e621fa386dd8198420d /manifests | |
parent | e91891f33fb33d0a6226f761cc4c13b65687e376 (diff) |
nrpe/debian: include debian class, service hasstatus => false
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/nrpe.pp | 4 | ||||
-rw-r--r-- | manifests/nrpe/debian.pp | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/manifests/nrpe.pp b/manifests/nrpe.pp index 3ef7d07..8482df8 100644 --- a/manifests/nrpe.pp +++ b/manifests/nrpe.pp @@ -8,10 +8,10 @@ class nagios::nrpe { include nagios::nrpe::freebsd } - 'Debian': { + 'Debian','Ubuntu': { if $nagios_nrpe_pid_file == '' { $nagios_nrpe_pid_file = '/var/run/nagios/nrpe.pid' } if $nagios_plugin_dir == '' { $nagios_plugin_dir = '/usr/lib/nagios/plugins' } - include nagios::nrpe::linux + include nagios::nrpe::debian } default: { if $nagios_nrpe_pid_file == '' { $nagios_nrpe_pid_file = '/var/run/nrpe.pid' } diff --git a/manifests/nrpe/debian.pp b/manifests/nrpe/debian.pp new file mode 100644 index 0000000..bf350ff --- /dev/null +++ b/manifests/nrpe/debian.pp @@ -0,0 +1,5 @@ +class nagios::nrpe::debian inherits nagios::nrpe::base { + Service['nagios-nrpe-server'] { + hasstatus => false, + } +} |