diff options
-rw-r--r-- | manifests/cron.pp | 2 | ||||
-rw-r--r-- | manifests/cron/base.pp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/manifests/cron.pp b/manifests/cron.pp index c26e079..4ac6cb4 100644 --- a/manifests/cron.pp +++ b/manifests/cron.pp @@ -1,6 +1,6 @@ # run puppet agent as cron class puppet::cron( - $cron_time, + $cron_time = false, $stop_service = true, $config = '/etc/puppet/puppet.conf', $config_content = false, 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 |