From f9f47f1e2af2d7bd4b60c84697fcffe365b1d0dd Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Mon, 24 Jan 2011 13:21:02 -0500 Subject: 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. --- manifests/nrpe/command.pp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'manifests/nrpe') 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"] { -- cgit v1.2.3