Skip to content

Conversation

otheus
Copy link

@otheus otheus commented Jan 27, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant