Skip to content

Commit ef3a15e

Browse files
Merge pull request #132 from uibkops/master
Add ca_server, ca_port option to puppet agent
2 parents ac41fc3 + 76f3fc6 commit ef3a15e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

manifests/agent.pp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
# ['localconfig'] - Where puppet agent caches the local configuration. An extension indicating the cache format is added automatically.
4343
# ['rundir'] - Where Puppet PID files are kept.
4444
# ['puppet_ssldir'] - Puppet sll directory
45+
# ['ca_server'] - The server to use for certificate authority requests
46+
# ['ca_port'] - The port to use for the certificate authority
4547
#
4648
# Actions:
4749
# - Install and configures the puppet agent
@@ -108,6 +110,8 @@
108110
$serialization_package = undef,
109111
$localconfig = undef,
110112
$puppet_ssldir = $::puppet::params::puppet_ssldir,
113+
$ca_server = undef,
114+
$ca_port = undef,
111115
) inherits puppet::params {
112116

113117
if ! defined(User[$::puppet::params::puppet_user]) {
@@ -292,7 +296,7 @@
292296
value => $puppet_ssldir,
293297
}
294298
}
295-
299+
296300
# rundir has no default and must be provided.
297301
ini_setting {'puppetagentrundir':
298302
ensure => present,
@@ -379,6 +383,14 @@
379383
setting => 'digest_algorithm',
380384
value => $digest_algorithm,
381385
}
386+
ini_setting {'puppetagentca_server':
387+
setting => 'ca_server',
388+
value => $ca_server,
389+
}
390+
ini_setting {'puppetagentca_port':
391+
setting => 'ca_port',
392+
value => $ca_port,
393+
}
382394
if ($templatedir != undef) and ($templatedir != 'undef')
383395
{
384396
ini_setting {'puppetagenttemplatedir':

0 commit comments

Comments
 (0)