Skip to content

Commit b04a8e9

Browse files
stephenrjohnsonStephen
authored andcommitted
Merge branch 'master' of github.com:stephenrjohnson/puppetmodule
2 parents 2431dda + a58b682 commit b04a8e9

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

manifests/agent.pp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# ['version'] - The version of the puppet agent to install
1111
# ['puppet_run_style'] - The run style of the agent either 'service', 'cron', 'external' or 'manual'
1212
# ['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
1314
# ['user_id'] - The userid of the puppet user
1415
# ['group_id'] - The groupid of the puppet group
1516
# ['splay'] - If splay should be enable defaults to false
@@ -48,6 +49,7 @@
4849
$version = 'present',
4950
$puppet_run_style = 'service',
5051
$puppet_run_interval = 30,
52+
$puppet_run_command = '/usr/bin/puppet agent --no-daemonize --onetime --logdest syslog > /dev/null 2>&1',
5153
$user_id = undef,
5254
$group_id = undef,
5355
$splay = false,
@@ -128,7 +130,7 @@
128130
$time2 = fqdn_rand($puppet_run_interval) + 30
129131

130132
cron { 'puppet-client':
131-
command => '/usr/bin/puppet agent --no-daemonize --onetime --logdest syslog > /dev/null 2>&1',
133+
command => $puppet_run_command,
132134
user => 'root',
133135
# run twice an hour, at a random minute in order not to collectively stress the puppetmaster
134136
hour => '*',

manifests/passenger.pp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,23 @@
4646
include apache::mod::ssl
4747

4848
if $::osfamily == 'redhat' {
49-
file{'/var/lib/puppet/reports':
49+
file { '/var/lib/puppet/reports':
5050
ensure => directory,
5151
owner => $::puppet::params::puppet_user,
5252
group => $::puppet::params::puppet_group,
53-
mode => '0750',
5453
}
5554

56-
file{"${puppet_ssldir}/ca":
55+
file { "${puppet_ssldir}/ca":
5756
ensure => directory,
5857
owner => $::puppet::params::puppet_user,
5958
group => $::puppet::params::puppet_group,
60-
mode => '0770',
6159
before => Exec['Certificate_Check'],
6260
}
6361

64-
file{"${puppet_ssldir}/ca/requests":
62+
file { "${puppet_ssldir}/ca/requests":
6563
ensure => directory,
6664
owner => $::puppet::params::puppet_user,
6765
group => $::puppet::params::puppet_group,
68-
mode => '0750',
6966
before => Exec['Certificate_Check'],
7067
}
7168
}

0 commit comments

Comments
 (0)