summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-08-07 01:31:17 +0200
committermh <mh@immerda.ch>2010-08-07 01:33:12 +0200
commit7df4eabf27357731cbdf6946591df92ac15e8ed2 (patch)
tree0a64fdb341d4d239a56b82bd3e8555dd41a76aba /manifests/puppetmaster.pp
parent55c61cf9ab8752663bdce0604ca4d7ef6647142f (diff)
improve checklastrun script
Diffstat (limited to 'manifests/puppetmaster.pp')
-rw-r--r--manifests/puppetmaster.pp12
1 files changed, 11 insertions, 1 deletions
diff --git a/manifests/puppetmaster.pp b/manifests/puppetmaster.pp
index a6d5d77..71cab3a 100644
--- a/manifests/puppetmaster.pp
+++ b/manifests/puppetmaster.pp
@@ -11,7 +11,17 @@ class puppet::puppetmaster inherits puppet {
}
include puppet::puppetmaster::base
- include puppet::puppetmaster::checklastrun
+
+
+ case $puppetmaster_checklastrun {
+ '': { $puppetmaster_checklastrun = '40 10,22 * * *'
+ }
+
+ if $puppetmaster_checklastrun {
+ include puppet::puppetmaster::checklastrun
+ } else {
+ include puppet::puppetmaster::checklastrun::disable
+ }
if $puppetmaster_mode == 'passenger' {
include puppet::puppetmaster::pasenger