summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-07-07 01:21:06 +0200
committermh <mh@immerda.ch>2011-07-07 01:21:06 +0200
commit9a18424b2bdf3506737a28ca56a25e20950d6d68 (patch)
treed965668a7ba506f6b35ffc0df4494931ddb4aa90 /manifests/puppetmaster.pp
parent551b46b257b12b32450607083a7cd644ed0dff58 (diff)
Revert "migrate cleanup_reports to parametrized classes as this makes it much more configurable"
This reverts commit 0f4718f062f7419092f69dcdd951339a466a79b8. Unfortuantely due to puppet bug #5517 we currently can't do it that nice so we need to hack around things https://projects.puppetlabs.com/issues/5517
Diffstat (limited to 'manifests/puppetmaster.pp')
-rw-r--r--manifests/puppetmaster.pp10
1 files changed, 8 insertions, 2 deletions
diff --git a/manifests/puppetmaster.pp b/manifests/puppetmaster.pp
index 55e1dab..3e8711c 100644
--- a/manifests/puppetmaster.pp
+++ b/manifests/puppetmaster.pp
@@ -29,8 +29,14 @@ class puppet::puppetmaster inherits puppet {
include puppet::puppetmaster::cluster
}
- class{'puppet::puppetmaster::cleanup_reports':
- cleanup_older_than => '30',
+ case $puppetmaster_cleanup_reports {
+ '': { $puppetmaster_cleanup_reports = '30' }
+ }
+
+ if $puppetmaster_cleanup_reports {
+ include puppet::puppetmaster::cleanup_reports
+ } else {
+ include puppet::puppetmaster::cleanup_reports::disable
}
if $use_shorewall {