Make e-r crons valid puppet

Puppet does not like cron list syntax to be made as a normal string.
Instead you must give puppet cron resources a puppet list that it will
convert to a cron list...

Change-Id: Ia0839be9b7d8ae772065f782adf61f831e75b92e
This commit is contained in:
Clark Boylan 2014-04-07 11:35:03 -07:00
parent f298499744
commit de1b32ff9e
1 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ class elastic_recheck::cron () {
cron { 'elastic-recheck-all':
user => 'recheck',
minute => '0,30',
minute => ['0', '30'],
hour => '*',
command => "cd ${er_state_path} && er_safe_run.sh ${graph_all_cmd}",
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin',
@ -34,7 +34,7 @@ class elastic_recheck::cron () {
cron { 'elastic-recheck-gate':
user => 'recheck',
minute => '10,40',
minute => ['10', '40'],
hour => '*',
command => "cd ${er_state_path} && er_safe_run.sh ${graph_gate_cmd}",
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin',
@ -44,7 +44,7 @@ class elastic_recheck::cron () {
cron { 'elastic-recheck-uncat':
user => 'recheck',
minute => '20,50',
minute => ['20', '50'],
hour => '*',
command => "cd ${er_state_path} && er_safe_run.sh ${uncat_cmd}",
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin',