summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-07-13 19:19:44 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-07-13 19:19:44 -0300
commit237e886f2ede3b830d28cf5e000dd5d95d8a343a (patch)
tree79165197dc525353a8794e4269f5efbc4eca8c6f
parent409542dd5c2b0b7663f29a98f612adb12d57550d (diff)
Ensure commands.cfg exists
The file commands.cfg was introduced at 61aab91919b2e6d9cb5d7afe3befe40de67ac132. This change make sure the file exists so nagios doesn't stop running.
-rw-r--r--manifests/base.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index 8b96308..589e98b 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -26,6 +26,13 @@ class nagios::base {
mode => 0644, owner => root, group => root;
}
+ file { 'nagios_commands_cfg':
+ path => "${nagios::defaults::vars::int_nagios_cfgdir}/commands.cfg",
+ ensure => present,
+ notify => Service['nagios'],
+ mode => 0644, owner => root, group => root;
+ }
+
file { 'nagios_cgi_cfg':
path => "${nagios::defaults::vars::int_nagios_cfgdir}/cgi.cfg",
source => [ "puppet:///modules/site-nagios/configs/${fqdn}/cgi.cfg",