diff options
author | mh <mh@immerda.ch> | 2010-08-07 01:33:21 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-08-07 01:33:21 +0200 |
commit | d739d6f348ad16391b5c95761e98b188cfeed848 (patch) | |
tree | 18bce8b13867d3f516f3fe8c4b6c8e81c18160cb | |
parent | 7df4eabf27357731cbdf6946591df92ac15e8ed2 (diff) |
improve reports cleanup disable
If we disable the cleanup of reports, actually remove the cron job.
-rw-r--r-- | manifests/puppetmaster.pp | 2 | ||||
-rw-r--r-- | manifests/puppetmaster/cleanup_reports/disable.pp | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/manifests/puppetmaster.pp b/manifests/puppetmaster.pp index 71cab3a..09c09af 100644 --- a/manifests/puppetmaster.pp +++ b/manifests/puppetmaster.pp @@ -35,6 +35,8 @@ class puppet::puppetmaster inherits puppet { if $puppetmaster_cleanup_reports { include puppet::puppetmaster::cleanup_reports + } else { + include puppet::puppetmaster::cleanup_reports::disable } if $use_shorewall { diff --git a/manifests/puppetmaster/cleanup_reports/disable.pp b/manifests/puppetmaster/cleanup_reports/disable.pp new file mode 100644 index 0000000..f195a3e --- /dev/null +++ b/manifests/puppetmaster/cleanup_reports/disable.pp @@ -0,0 +1,5 @@ +class puppet::puppetmaster::cleanup_reports::disable inherits puppet::puppetmaster::cleanup_reports { + File['/etc/cron.daily/puppet_reports_cleanup.sh']{ + ensure => absent, + } +} |