summaryrefslogtreecommitdiff
path: root/manifests/defaults/vars.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2014-10-05 12:36:29 +0200
committermh <mh@immerda.ch>2014-10-05 12:36:29 +0200
commitb52d91b8fcabf0c6b1cd648cf996b7468be60969 (patch)
tree921d17303860ed9e9b7d6f1847b90a04e55ebb7c /manifests/defaults/vars.pp
parentb1a10d01e4c4682540eab75541845514ea8c4dd0 (diff)
get auto purging working again
That purging resources work correctly, the config files must be at the location that the nagios providers have internally, which is at /etc/nagios/<name>.cfg To ease the config file we used the cfg_dir option so far, which we can't anymore and hence this change requires adoption of your site modules. But auto-purging resources will then finally work.
Diffstat (limited to 'manifests/defaults/vars.pp')
-rw-r--r--manifests/defaults/vars.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/defaults/vars.pp b/manifests/defaults/vars.pp
index 87f41f8..e1a6224 100644
--- a/manifests/defaults/vars.pp
+++ b/manifests/defaults/vars.pp
@@ -1,7 +1,8 @@
+# some default vars
class nagios::defaults::vars {
case $nagios::cfgdir {
'': { $int_cfgdir = $::operatingsystem ? {
- centos => '/etc/nagios/',
+ centos => '/etc/nagios',
default => '/etc/nagios3'
}
}