summaryrefslogtreecommitdiff
path: root/manifests/nrpe/command.pp
diff options
context:
space:
mode:
authorGabriel Filion <gabriel@koumbit.org>2011-02-01 16:21:20 -0500
committerGabriel Filion <lelutin@gmail.com>2012-04-09 23:49:18 -0400
commitc9de09ece4508db6b216abd0f74f07ea7befe906 (patch)
tree81a47fe542a2ba04ea4cae8bc377ae951ee2b139 /manifests/nrpe/command.pp
parentf9f47f1e2af2d7bd4b60c84697fcffe365b1d0dd (diff)
nrpe FreeBSD compatibility
Make some changes to ensure compatibility of the nrpe resources with FreeBSD. * Use group 0 instead of 'root' * capitalize values for testing $operatingsystem * override arguments for the nrpe service so that FreeBSD can find the init script
Diffstat (limited to 'manifests/nrpe/command.pp')
-rw-r--r--manifests/nrpe/command.pp8
1 files changed, 1 insertions, 7 deletions
diff --git a/manifests/nrpe/command.pp b/manifests/nrpe/command.pp
index 9c90ed7..e6ebdae 100644
--- a/manifests/nrpe/command.pp
+++ b/manifests/nrpe/command.pp
@@ -13,17 +13,11 @@ define nagios::nrpe::command (
file { "$nagios_nrpe_cfgdir/nrpe.d/${name}_command.cfg":
ensure => $ensure,
- mode => 644, owner => root, group => root,
+ mode => 644, owner => root, group => 0,
notify => Service['nagios-nrpe-server'],
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"] {