From 8b3c464eeb29f21c4f8119fc3a4ac7b7140878aa Mon Sep 17 00:00:00 2001 From: varac Date: Fri, 25 Jan 2013 16:08:17 +0100 Subject: nrpe/debian: include debian class, service hasstatus => false --- manifests/nrpe.pp | 4 ++-- manifests/nrpe/debian.pp | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 manifests/nrpe/debian.pp (limited to 'manifests') 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, + } +} -- cgit v1.2.3