Commit 1d41169
committed
(PUP-11869) Retry failed CA/CRL refreshes sooner
Prior to this commit, any time a node attempted to refresh its
certificate authority (CA) or certificate revocation list (CRL),
regardless of whether it was successful in doing so, Puppet would update
the modified timestamp (mtime) on the CA or CRL file.
Puppet uses the mtime to decide when to attempt to update a CA or CRL.
As a result, if Puppet attempted but failed to updates either of those
file, it would need to wait the full refresh interval before trying
again.
This commit changes Puppet to only update the modified timestamp on the
CA or CRL files if they have been successfully refreshed. This means
that if Puppet fails to update its CA or CRL, it will try again the next
run interval instead of waiting for the full CA or CRL refresh interval
(which should be greater than the run interval).1 parent 28c58fb commit 1d41169
File tree
2 files changed
+21
-8
lines changed- lib/puppet/ssl
- spec/unit/ssl
2 files changed
+21
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 62 | | |
66 | 63 | | |
67 | 64 | | |
| |||
114 | 111 | | |
115 | 112 | | |
116 | 113 | | |
117 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| |||
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
174 | | - | |
175 | | - | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
213 | 218 | | |
214 | 219 | | |
215 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
| 490 | + | |
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
498 | 506 | | |
499 | 507 | | |
500 | 508 | | |
| |||
0 commit comments