diff options
author | mh <mh@immerda.ch> | 2011-07-07 00:52:08 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-07-07 00:52:08 +0200 |
commit | 0f4718f062f7419092f69dcdd951339a466a79b8 (patch) | |
tree | 3b4dd88d9fa9c93d52bbaba72974e8684a7578fd /manifests/puppetmaster.pp | |
parent | 05331a27858cd6c199acc4ffbe694592e2c40e74 (diff) |
migrate cleanup_reports to parametrized classes as this makes it much more configurable
Diffstat (limited to 'manifests/puppetmaster.pp')
-rw-r--r-- | manifests/puppetmaster.pp | 10 |
1 files changed, 2 insertions, 8 deletions
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 { |