From d739d6f348ad16391b5c95761e98b188cfeed848 Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 7 Aug 2010 01:33:21 +0200 Subject: improve reports cleanup disable If we disable the cleanup of reports, actually remove the cron job. --- manifests/puppetmaster.pp | 2 ++ manifests/puppetmaster/cleanup_reports/disable.pp | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 manifests/puppetmaster/cleanup_reports/disable.pp (limited to 'manifests') 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, + } +} -- cgit v1.2.3