From 20e54f8249f0a3eb340d57b89ad4eed0644baebf Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 25 Apr 2008 18:44:04 +0000 Subject: added default localhost config file --- manifests/init.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'manifests/init.pp') 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, -- cgit v1.2.3