Skip to content

Commit 6496511

Browse files
author
Florian Faltermeier
committed
Add ca_server, ca_port option to puppet agent
1 parent ac41fc3 commit 6496511

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

manifests/agent.pp

Lines changed: 12 additions & 0 deletions
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]) {
@@ -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)