|
14 | 14 | # ['user_id'] - The userid of the puppet user
|
15 | 15 | # ['group_id'] - The groupid of the puppet group
|
16 | 16 | # ['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 |
17 | 21 | # ['environment'] - The environment of the puppet agent
|
18 | 22 | # ['report'] - Whether to return reports
|
19 | 23 | # ['pluginsync'] - Whethere to have pluginsync
|
|
56 | 60 | $templatedir = undef,
|
57 | 61 | $syslogfacility = undef,
|
58 | 62 | $priority = undef,
|
| 63 | + $logdir = undef, |
59 | 64 |
|
60 | 65 | #[agent]
|
61 | 66 | $srv_domain = undef,
|
|
64 | 69 | $environment = 'production',
|
65 | 70 | $puppet_server = $::puppet::params::puppet_server,
|
66 | 71 | $use_srv_records = false,
|
67 |
| - $puppet_run_interval = 30, |
| 72 | + $puppet_run_interval = $::puppet::params::puppet_run_interval, |
68 | 73 | $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, |
69 | 79 | $puppet_server_port = $::puppet::params::puppet_server_port,
|
70 | 80 | $report = true,
|
71 | 81 | $pluginsync = true,
|
|
220 | 230 | value => $srv_domain,
|
221 | 231 | }
|
222 | 232 | }
|
223 |
| - elsif($use_srv_records == false) |
| 233 | + elsif($use_srv_records == false) |
224 | 234 | {
|
225 | 235 | ini_setting {'puppetagentsrv_domain':
|
226 | 236 | ensure => absent,
|
|
281 | 291 | value => $splay,
|
282 | 292 | }
|
283 | 293 |
|
| 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 | + |
284 | 306 | ini_setting {'puppetmasterport':
|
285 | 307 | ensure => present,
|
286 | 308 | setting => 'masterport',
|
|
384 | 406 | section => 'main',
|
385 | 407 | }
|
386 | 408 | }
|
| 409 | + if $logdir != undef { |
| 410 | + ini_setting {'puppetagentlogdir': |
| 411 | + ensure => present, |
| 412 | + setting => 'logdir', |
| 413 | + value => $logdir, |
| 414 | + section => 'main', |
| 415 | + } |
| 416 | + } |
387 | 417 | if $http_proxy_host != undef {
|
388 | 418 | ini_setting {'puppetagenthttpproxyhost':
|
389 | 419 | ensure => present,
|
|
0 commit comments