diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-07-13 19:19:44 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-07-13 19:19:44 -0300 |
commit | 237e886f2ede3b830d28cf5e000dd5d95d8a343a (patch) | |
tree | 79165197dc525353a8794e4269f5efbc4eca8c6f | |
parent | 409542dd5c2b0b7663f29a98f612adb12d57550d (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.pp | 7 |
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", |