Skip to content

Commit 4d0985b

Browse files
Add certname option to puppet agent
1 parent 05f1a6a commit 4d0985b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

manifests/agent.pp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
$verbose = undef,
7575
$noop = undef,
7676
$usecacheonfailure = undef,
77+
$certname = undef,
7778
) inherits puppet::params {
7879

7980
if ! defined(User[$::puppet::params::puppet_user]) {
@@ -358,4 +359,11 @@
358359
section => 'main',
359360
}
360361
}
362+
if $certname != undef {
363+
ini_setting {'puppetagentcertname':
364+
ensure => present,
365+
setting => 'certname',
366+
value => $certname,
367+
}
368+
}
361369
}

0 commit comments

Comments
 (0)