From 0f4718f062f7419092f69dcdd951339a466a79b8 Mon Sep 17 00:00:00 2001 From: mh Date: Thu, 7 Jul 2011 00:52:08 +0200 Subject: migrate cleanup_reports to parametrized classes as this makes it much more configurable --- manifests/puppetmaster.pp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'manifests/puppetmaster.pp') diff --git a/manifests/puppetmaster.pp b/manifests/puppetmaster.pp index 3e8711c..55e1dab 100644 --- a/manifests/puppetmaster.pp +++ b/manifests/puppetmaster.pp @@ -29,14 +29,8 @@ class puppet::puppetmaster inherits puppet { include puppet::puppetmaster::cluster } - case $puppetmaster_cleanup_reports { - '': { $puppetmaster_cleanup_reports = '30' } - } - - if $puppetmaster_cleanup_reports { - include puppet::puppetmaster::cleanup_reports - } else { - include puppet::puppetmaster::cleanup_reports::disable + class{'puppet::puppetmaster::cleanup_reports': + cleanup_older_than => '30', } if $use_shorewall { -- cgit v1.2.3