File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
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 => ' *' ,
Original file line number Diff line number Diff line change 46
46
include apache::mod::ssl
47
47
48
48
if $::osfamily == ' redhat' {
49
- file { '/var/lib/puppet/reports' :
49
+ file { '/var/lib/puppet/reports' :
50
50
ensure => directory ,
51
51
owner => $::puppet::params::puppet_user ,
52
52
group => $::puppet::params::puppet_group ,
53
- mode => ' 0750' ,
54
53
}
55
54
56
- file { "${puppet_ssldir}/ca" :
55
+ file { "${puppet_ssldir}/ca" :
57
56
ensure => directory ,
58
57
owner => $::puppet::params::puppet_user ,
59
58
group => $::puppet::params::puppet_group ,
60
- mode => ' 0770' ,
61
59
before => Exec[' Certificate_Check' ],
62
60
}
63
61
64
- file { "${puppet_ssldir}/ca/requests" :
62
+ file { "${puppet_ssldir}/ca/requests" :
65
63
ensure => directory ,
66
64
owner => $::puppet::params::puppet_user ,
67
65
group => $::puppet::params::puppet_group ,
68
- mode => ' 0750' ,
69
66
before => Exec[' Certificate_Check' ],
70
67
}
71
68
}
You can’t perform that action at this time.
0 commit comments