From 885976423b223947215aaac5f32b3ee245e85683 Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 5 Oct 2014 12:53:44 +0200 Subject: restore a resource that was deleted too early --- manifests/base.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/manifests/base.pp b/manifests/base.pp index c0ebf77..526a8fd 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -17,6 +17,16 @@ class nagios::base { $cfg_dir = $nagios::defaults::vars::int_cfgdir # this file should contain all the nagios_puppet-paths: file{ + 'nagios_cfgdir': + ensure => directory, + path => $cfg_dir, + recurse => true, + purge => true, + force => true, + notify => Service['nagios'], + owner => root, + group => root, + mode => '0755'; 'nagios_main_cfg': path => "${cfg_dir}/nagios.cfg", source => ["puppet:///modules/site_nagios/configs/${::fqdn}/nagios.cfg", -- cgit v1.2.3