Skip to content

Commit df2d2cc

Browse files
authored
Merge pull request #9068 from mhashizume/PUP-11855/main/host-renewal
(PUP-11855) Add hostcert renewal setting
2 parents 28c58fb + 9b29eed commit df2d2cc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lib/puppet/defaults.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,22 @@ def self.initialize_default_settings!(settings)
12481248
unchanged on the server, then the agent run will continue using the
12491249
local CRL it already has.#{AS_DURATION}",
12501250
},
1251+
:hostcert_renewal_interval => {
1252+
:default => "30d",
1253+
:type => :duration,
1254+
:desc => "How often the Puppet agent refreshes its client certificate.
1255+
By default the client certificate is refreshed once every 30 days. If
1256+
a different duration is specified, then the agent will refresh its
1257+
client certificate whenever it next runs and the elapsed time since the
1258+
client certificate was last refreshed exceeds the duration.
1259+
1260+
In general, the duration should be greater than the `runinterval`.
1261+
Setting it to 0 will disable automatic renewal.
1262+
1263+
If the agent downloads a new certificate, the agent will use it for subsequent
1264+
network requests. If the refresh request fails, then the agent run will continue using the
1265+
certificate it already has. #{AS_DURATION}",
1266+
},
12511267
:keylength => {
12521268
:default => 4096,
12531269
:type => :integer,

0 commit comments

Comments
 (0)