summaryrefslogtreecommitdiff
path: root/manifests/cron/base.pp
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-10-09 17:18:59 +0000
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-10-09 17:18:59 +0000
commitc3f2067f970ffaa79ff5df56101208211786f162 (patch)
treeaeac596294dad1ea5d76e3851e44e6957204ca5a /manifests/cron/base.pp
parent83850f6c08804fa32eded3c6bb420eba1eba46a8 (diff)
parent483e40d410ce495cc4d6ad0265b3a1948b72e493 (diff)
Merge branch 'fix_cron_time' into 'master' HEADmaster
Fix cron time This is a first attempt at fixing $cron_time. It's currently impossible to use the automatically generated timings. This would fix #4 . See merge request !4
Diffstat (limited to 'manifests/cron/base.pp')
-rw-r--r--manifests/cron/base.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/cron/base.pp b/manifests/cron/base.pp
index 82483df..ee2bbca 100644
--- a/manifests/cron/base.pp
+++ b/manifests/cron/base.pp
@@ -8,7 +8,7 @@ class puppet::cron::base inherits puppet::base {
if !$puppet::cron::cron_time {
$crontime_interval_minute = fqdn_rand(29)
- $crontime_interval_minute2 = inline_template("<%= 30+scope.lookupvar('puppet::cron::cron_time').to_i %>")
+ $crontime_interval_minute2 = 30 + $crontime_interval_minute
$crontime = "${crontime_interval_minute},${crontime_interval_minute2} * * * *"
} else {
$crontime = $puppet::cron::cron_time