puppetmodule icon indicating copy to clipboard operation
puppetmodule copied to clipboard

patch: make cronjob time dependent on IP address

Open otheus opened this issue 9 years ago • 0 comments

If agent-mode is set to cron, then cron_minute may be set to ip. The actual minute used in the cron job will be determined by the numeric value of the IP address, mod 60. The IP address is assumed from the global fact ::ipaddress but may be specified with ip:ADDRESS. The first 24 bits of the IP address are masked, but the mask may be specified with ip/MASK or ip:ADDRESS/MASK. For example:

$puppet_run_style => 'cron',
$cron_minute => 'ip:10.2.9.63/16',

It will run on the 27th minute.

WARNING: Renames puppet-client" to "puppet-agent" for purposes of labeling the cronjob entry.

otheus avatar Jan 27 '17 15:01 otheus