Puppet Class: puppet::agent::cron
- Defined in:
- manifests/agent/cron.pp
Overview
Class: puppet::agent::cron
Create a cron service entry to trigger a puppet run
Parameters
- runinterval
-
Integer to determine how often puppet runs in minutes. Currently this works for periods shorter than an hour. Run times are randomized based on MAC address to load balance
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'manifests/agent/cron.pp', line 12
class puppet::agent::cron (
$runiterval = 30,
) {
include ::puppet
cron { 'puppet-agent':
command => "${puppet::path} agent --onetime --no-daemonize",
user => 'root',
minute => interval_to_minute($runiterval),
}
Class['puppet'] -> Class['puppet::agent::cron']
}
|