From 507956dedaf0b1852574553f0d2ffea55fd1f94f Mon Sep 17 00:00:00 2001 From: Jerome Charaoui Date: Fri, 4 Dec 2009 17:15:04 -0500 Subject: port the 'nagios_allow_external_cmd' switch to debian --- manifests/centos.pp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'manifests/centos.pp') diff --git a/manifests/centos.pp b/manifests/centos.pp index 6581b7a..4d9507b 100644 --- a/manifests/centos.pp +++ b/manifests/centos.pp @@ -8,4 +8,12 @@ class nagios::centos inherits nagios::base { Service[nagios]{ hasstatus => true, } + + if ($nagios_allow_external_cmd) { + file { '/var/spool/nagios/cmd': + ensure => 'directory', + require => Package['nagios'], + mode => 2660, owner => apache, group => nagios, + } + } } -- cgit v1.2.3