diff options
author | Micah <micah@leap.se> | 2015-11-19 11:52:31 -0500 |
---|---|---|
committer | Micah <micah@leap.se> | 2015-11-24 13:15:27 -0500 |
commit | 4f858d2e2919f6acea4c1b9de91bd5a594eaa292 (patch) | |
tree | b93e6b50c73e026c343b35ae24cb2be58492b761 /puppet/modules/site_config/manifests | |
parent | 36f4b8df0eb9d7d8a9a6fa5d4874d09e9d5c2020 (diff) |
Cleanup old leap mx logs that may appear on some nodes due to how things
were logged before
Change-Id: Ief95f35ea52a189075c2eda28c00bcc567c464b2
Diffstat (limited to 'puppet/modules/site_config/manifests')
-rw-r--r-- | puppet/modules/site_config/manifests/remove/files.pp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/puppet/modules/site_config/manifests/remove/files.pp b/puppet/modules/site_config/manifests/remove/files.pp index 466f50c8..06c26772 100644 --- a/puppet/modules/site_config/manifests/remove/files.pp +++ b/puppet/modules/site_config/manifests/remove/files.pp @@ -27,6 +27,13 @@ class site_config::remove::files { path => '/var/log/', recurse => true, matches => 'leap_mx*'; + # We rotate 5 logs, so we should only have mx.log, mx.log.[1-5], with an + # optional .gz suffix. The following will remove any logs that are out + # of this range + 'leap_mx_rotate': + path => '/var/log/leap/', + recurse => true, + matches => [ 'mx.log.[6-9](.gz)?', 'mx.log.[0-9][0-9]']; '/srv/leap/webapp/public/provider.json':; '/srv/leap/couchdb/designs/tmp_users': recurse => true, |