Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Make cron resource attribute minute as variable to run as separate interval based on some condition

$
0
0
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'] ], }

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>