File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 10
10
# ['version'] - The version of the puppet agent to install
11
11
# ['puppet_run_style'] - The run style of the agent either 'service', 'cron', 'external' or 'manual'
12
12
# ['puppet_run_interval'] - The run interval of the puppet agent in minutes, default is 30 minutes
13
+ # ['puppet_run_command'] - The command that will be executed for puppet agent run
13
14
# ['user_id'] - The userid of the puppet user
14
15
# ['group_id'] - The groupid of the puppet group
15
16
# ['splay'] - If splay should be enable defaults to false
48
49
$version = ' present' ,
49
50
$puppet_run_style = ' service' ,
50
51
$puppet_run_interval = 30,
52
+ $puppet_run_command = ' /usr/bin/puppet agent --no-daemonize --onetime --logdest syslog > /dev/null 2>&1' ,
51
53
$user_id = undef ,
52
54
$group_id = undef ,
53
55
$splay = false ,
128
130
$time2 = fqdn_rand($puppet_run_interval ) + 30
129
131
130
132
cron { 'puppet-client' :
131
- command => ' /usr/bin/puppet agent --no-daemonize --onetime --logdest syslog > /dev/null 2>&1 ' ,
133
+ command => $puppet_run_command ,
132
134
user => ' root' ,
133
135
# run twice an hour, at a random minute in order not to collectively stress the puppetmaster
134
136
hour => ' *' ,
You can’t perform that action at this time.
0 commit comments