Revision 7a9857ba
Added by Greg Sutcliffe about 12 years ago
manifests/cron.pp | ||
---|---|---|
}
|
||
|
||
cron { 'puppet':
|
||
command => "sleep $((RANDOM%59)) && /usr/sbin/puppet agent --config ${puppet::params::dir}/puppet.conf --onetime --no-daemonize",
|
||
command => "sleep $((RANDOM%59)) && /usr/sbin/puppet agent --config ${puppet::dir}/puppet.conf --onetime --no-daemonize",
|
||
user => root,
|
||
minute => ip_to_cron($puppet::params::cron_interval, $puppet::params::cron_range),
|
||
minute => ip_to_cron($puppet::cron_interval, $puppet::cron_range),
|
||
}
|
||
|
||
}
|
Also available in: Unified diff
Parameterize the agent half of the module, and enable user to specify the Puppet port