File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
5
5
6
6
## (next)
7
7
- NEW: allow borrowing insufficient memory from swap for distribution
8
+ - NEW: implemented local backup filebucket cleanup
8
9
9
10
## 1.3.0 (2019-04-14)
10
11
- FIXED: forced secrets to override persistent values
Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ cfnetwork::client_ports:
161
161
* `$key_server = 'hkp://pgp.mit.edu:80'` - default PGP key server
162
162
* `$random_feed = true` - enable random entropy generating daemon
163
163
* `$add_handy_tools = true` - install additional tools
164
+ * `$puppet_backup_age = '1d'` - how long to keep local puppet filebucket backups
164
165
165
166
# # `cfsystem::bindir` type
166
167
Original file line number Diff line number Diff line change 66
66
67
67
Boolean $random_feed = true ,
68
68
Boolean $add_handy_tools = true ,
69
+
70
+ String[1] $puppet_backup_age = ' 1d' ,
69
71
) inherits cfsystem::defaults {
70
72
include cfnetwork
71
73
include cfauth
203
205
}
204
206
}
205
207
208
+ # Cleanup local backups
209
+ tidy { '/opt/puppetlabs/puppet/cache/clientbucket/' :
210
+ age => $puppet_backup_age ,
211
+ recurse => true ,
212
+ rmdirs => true ,
213
+ backup => false ,
214
+ }
215
+
206
216
# ---
207
217
exec { 'cfsystem-systemd-reload' :
208
218
command => ' /bin/systemctl daemon-reload' ,
You can’t perform that action at this time.
0 commit comments