Skip to content

Commit 5103d95

Browse files
Merge 109 after adding the missed puppetagentsrv removeal
1 parent f548dee commit 5103d95

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

manifests/agent.pp

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
# ['user_id'] - The userid of the puppet user
1515
# ['group_id'] - The groupid of the puppet group
1616
# ['splay'] - If splay should be enable defaults to false
17+
# ['splaylimit'] - The maximum time to delay before runs.
18+
# ['classfile'] - The file in which puppet agent stores a list of the classes
19+
# associated with the retrieved configuration.
20+
# ['logdir'] - The directory in which to store log files
1721
# ['environment'] - The environment of the puppet agent
1822
# ['report'] - Whether to return reports
1923
# ['pluginsync'] - Whethere to have pluginsync
@@ -56,6 +60,7 @@
5660
$templatedir = undef,
5761
$syslogfacility = undef,
5862
$priority = undef,
63+
$logdir = undef,
5964

6065
#[agent]
6166
$srv_domain = undef,
@@ -64,8 +69,13 @@
6469
$environment = 'production',
6570
$puppet_server = $::puppet::params::puppet_server,
6671
$use_srv_records = false,
67-
$puppet_run_interval = 30,
72+
$puppet_run_interval = $::puppet::params::puppet_run_interval,
6873
$splay = false,
74+
75+
# $splaylimit defaults to $runinterval per Puppetlabs docs:
76+
# http://docs.puppetlabs.com/references/latest/configuration.html#splaylimit
77+
$splaylimit = $::puppet::params::puppet_run_interval,
78+
$classfile = $::puppet::params::classfile,
6979
$puppet_server_port = $::puppet::params::puppet_server_port,
7080
$report = true,
7181
$pluginsync = true,
@@ -220,7 +230,7 @@
220230
value => $srv_domain,
221231
}
222232
}
223-
elsif($use_srv_records == false)
233+
elsif($use_srv_records == false)
224234
{
225235
ini_setting {'puppetagentsrv_domain':
226236
ensure => absent,
@@ -281,6 +291,18 @@
281291
value => $splay,
282292
}
283293

294+
ini_setting {'puppetagentsplaylimit':
295+
ensure => present,
296+
setting => 'splaylimit',
297+
value => $splaylimit,
298+
}
299+
300+
ini_setting {'puppetagentclassfile':
301+
ensure => present,
302+
setting => 'classfile',
303+
value => $classfile,
304+
}
305+
284306
ini_setting {'puppetmasterport':
285307
ensure => present,
286308
setting => 'masterport',
@@ -384,6 +406,14 @@
384406
section => 'main',
385407
}
386408
}
409+
if $logdir != undef {
410+
ini_setting {'puppetagentlogdir':
411+
ensure => present,
412+
setting => 'logdir',
413+
value => $logdir,
414+
section => 'main',
415+
}
416+
}
387417
if $http_proxy_host != undef {
388418
ini_setting {'puppetagenthttpproxyhost':
389419
ensure => present,

manifests/params.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
$puppetdb_strict_validation = true
3232
$environments = 'config'
3333
$digest_algorithm = 'md5'
34+
$puppet_run_interval = 30
35+
$classfile = '$statedir/classes.txt'
3436

3537
# Only used when environments == directory
3638
$environmentpath = "${confdir}/environments"

0 commit comments

Comments
 (0)