|
37 | 37 | # ['serialization_package'] - defaults to undef, if provided, we install this package, otherwise we fall back to the gem from 'serialization_format'
|
38 | 38 | # ['http_proxy_host'] - The hostname of an HTTP proxy to use for agent -> master connections
|
39 | 39 | # ['http_proxy_port'] - The port to use when puppet uses an HTTP proxy
|
| 40 | +# ['localconfig'] - Where puppet agent caches the local configuration. An extension indicating the cache format is added automatically. |
| 41 | +# ['rundir'] - Where Puppet PID files are kept. |
| 42 | +# ['puppet_ssldir'] - Puppet sll directory |
40 | 43 | #
|
41 | 44 | # Actions:
|
42 | 45 | # - Install and configures the puppet agent
|
|
66 | 69 | $syslogfacility = undef,
|
67 | 70 | $priority = undef,
|
68 | 71 | $logdir = undef,
|
| 72 | + $rundir = $::puppet::params::rundir, |
69 | 73 |
|
70 | 74 | #[agent]
|
71 | 75 | $srv_domain = undef,
|
|
99 | 103 | $cron_minute = undef,
|
100 | 104 | $serialization_format = undef,
|
101 | 105 | $serialization_package = undef,
|
| 106 | + $localconfig = undef, |
| 107 | + $puppet_ssldir = $::puppet::params::puppet_ssldir, |
102 | 108 | ) inherits puppet::params {
|
103 | 109 |
|
104 | 110 | if ! defined(User[$::puppet::params::puppet_user]) {
|
|
252 | 258 | }else {
|
253 | 259 | $orderign_ensure = 'absent'
|
254 | 260 | }
|
| 261 | + if $localconfig != undef { |
| 262 | + ini_setting {'puppetagentlocalconfig': |
| 263 | + ensure => present, |
| 264 | + setting => 'localconfig', |
| 265 | + value => $localconfig, |
| 266 | + } |
| 267 | + } |
| 268 | + if $puppet_ssldir != undef { |
| 269 | + ini_setting {'puppetagentsldir': |
| 270 | + ensure => present, |
| 271 | + section => 'main', |
| 272 | + setting => 'ssldir', |
| 273 | + value => $puppet_ssldir, |
| 274 | + } |
| 275 | + } |
| 276 | + |
| 277 | + # rundir has no default and must be provided. |
| 278 | + ini_setting {'puppetagentrundir': |
| 279 | + ensure => present, |
| 280 | + section => 'main', |
| 281 | + setting => 'rundir', |
| 282 | + value => $rundir, |
| 283 | + } |
| 284 | + |
255 | 285 | ini_setting {'puppetagentordering':
|
256 | 286 | ensure => $orderign_ensure,
|
257 | 287 | setting => 'ordering',
|
|
0 commit comments