if environ == 'prod' {
$min == '[5,10,15,20,25]'
else
$min == '[10,40]
}
cron { 'update_yp':
command => '/usr/local/script.sh > /dev/null 2>&1',
hour => '*',
minute => $min,
require => [ File['/usr/local/script.shh'], Exec['run_script'] ],
}
↧
Make cron resource attribute minute as variable to run as separate interval based on some condition
↧