summaryrefslogtreecommitdiff
path: root/manifests/centos.pp
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2009-12-04 17:15:04 -0500
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2009-12-04 17:15:04 -0500
commit507956dedaf0b1852574553f0d2ffea55fd1f94f (patch)
treeb1e8f86fc822e7236b240cb470249f1dfd3e9d1c /manifests/centos.pp
parent1201207f492dd807d754df0d4fc4156384248ebb (diff)
port the 'nagios_allow_external_cmd' switch to debian
Diffstat (limited to 'manifests/centos.pp')
-rw-r--r--manifests/centos.pp8
1 files changed, 8 insertions, 0 deletions
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,
+ }
+ }
}