summaryrefslogtreecommitdiff
path: root/manifests/nrpe
diff options
context:
space:
mode:
authorGabriel Filion <gabriel@koumbit.org>2011-01-24 13:21:02 -0500
committerGabriel Filion <lelutin@gmail.com>2012-04-09 23:49:18 -0400
commitf9f47f1e2af2d7bd4b60c84697fcffe365b1d0dd (patch)
tree1fc77ba2b51e3905cb607c30d1f024870bb43f9e /manifests/nrpe
parentef56fdd676408a1068dd9b666fb2cf57b518fd04 (diff)
Fix nagios::nrpe::command for FreeBSD
The 'command' resource defines files under the root group. Since the 'root' group does not exist by default on FreeBSD, make an exception for FreeBSD to use the 'wheel' group instead.
Diffstat (limited to 'manifests/nrpe')
-rw-r--r--manifests/nrpe/command.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/nrpe/command.pp b/manifests/nrpe/command.pp
index 1da73c8..9c90ed7 100644
--- a/manifests/nrpe/command.pp
+++ b/manifests/nrpe/command.pp
@@ -18,6 +18,12 @@ define nagios::nrpe::command (
require => File [ "$nagios_nrpe_cfgdir/nrpe.d" ]
}
+ if $operatingsystem == 'freebsd' {
+ File["$nagios_nrpe_cfgdir/nrpe.d/${name}_command.cfg"] {
+ group => wheel,
+ }
+ }
+
case $source {
'': {
File["$nagios_nrpe_cfgdir/nrpe.d/${name}_command.cfg"] {