Skip to content

Commit 2a4f6e8

Browse files
committed
(PUP-11944) Update hostcert_renewal_interval puppet setting docs
Currently, the documentation of the setting implies that the certificate will be refreshed every N days (N = specified duration). However, it actually only renews the client cert if the cert expires within N days from now. This commit updates the documentation for hostcert_renewal_interval in defaults.rb to more closely reflect how the setting behaves.
1 parent 1a53a7d commit 2a4f6e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/puppet/defaults.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,11 +1247,11 @@ def self.initialize_default_settings!(settings)
12471247
:hostcert_renewal_interval => {
12481248
:default => "30d",
12491249
:type => :duration,
1250-
:desc => "How often the Puppet agent refreshes its client certificate.
1251-
By default the client certificate is refreshed once every 30 days. If
1252-
a different duration is specified, then the agent will refresh its
1253-
client certificate whenever it next runs and the elapsed time since the
1254-
client certificate was last refreshed exceeds the duration.
1250+
:desc => "When the Puppet agent refreshes its client certificate.
1251+
By default the client certificate will refresh 30 days before the certificate
1252+
expires. If a different duration is specified, then the agent will refresh its
1253+
client certificate whenever it next runs and if the client certificate expires
1254+
within the duration specified.
12551255
12561256
In general, the duration should be greater than the `runinterval`.
12571257
Setting it to 0 will disable automatic renewal.

0 commit comments

Comments
 (0)