diff options
author | mh <mh@immerda.ch> | 2008-04-25 18:44:04 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-04-25 18:44:04 +0000 |
commit | 20e54f8249f0a3eb340d57b89ad4eed0644baebf (patch) | |
tree | df83ef153e916645f557f4b13ed8669b38642510 /manifests/init.pp | |
parent | 1137abdb0a8bd400221aef8f0077f06dc84c9b78 (diff) |
added default localhost config file
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 43afe09..30b1566 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -151,6 +151,17 @@ class nagios::centos inherits nagios::base { mode => '0644', notify => Service['apache'], } + # default file from rpm + file { nagios_localhost_cfg: + path => "/etc/nagios/localhost.cfg", + source => [ "puppet://$server/files/nagios/configs/${fqdn}/localhost.cfg", + "puppet://$server/files/nagios/configs/${operatingsystem}/localhost.cfg", + "puppet://$server/nagios/configs/${operatingsystem}/localhost.cfg" ], + owner => 'root', + group => 0, + mode => '0644', + notify => Service['apache'], + } file{"/etc/nagios/private/": source => "puppet://$server/nagios/empty", ensure => directory, |