summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-02-23 11:40:14 -0500
committerMicah <micah@leap.se>2016-02-23 14:15:23 -0500
commitfd599945751a489a638fadace51c871f59346a46 (patch)
treee0c423f19e31c3e7c301e17723cd65446bcd0d51
parente5ecf06ef15637cb52f65424d6d7d889731c68a9 (diff)
We are rotating the mx logs 5 times, but we originally thought we should
only have the following logfiles in that directory ever: mx.log, mx.log.[1-5], with an optional .gz suffix. However, we were wrong about the 'optional' part of the compression, we use the 'compress' option, so the logs will always be compressed. So there should never be the log files mx.log.1, mx.log.2, etc. This change adjusts the clean-up to deal with that. (#7058) https://github.com/leapcode/leap_platform/pull/97 Change-Id: I109d08ac063fe094c54e93be91893a67d7fbb51b
-rw-r--r--puppet/modules/site_config/manifests/remove/files.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/puppet/modules/site_config/manifests/remove/files.pp b/puppet/modules/site_config/manifests/remove/files.pp
index afdd4fce..5aa07e53 100644
--- a/puppet/modules/site_config/manifests/remove/files.pp
+++ b/puppet/modules/site_config/manifests/remove/files.pp
@@ -33,7 +33,8 @@ class site_config::remove::files {
'leap_mx':
path => '/var/log/',
recurse => true,
- matches => ['leap_mx*', 'mx.log.[6-9](.gz)?', 'mx.log.[0-9][0-9](.gz)?'];
+ matches => ['leap_mx*', 'mx.log.[1-5]', 'mx.log.[6-9](.gz)?',
+ 'mx.log.[0-9][0-9](.gz)?'];
'/srv/leap/webapp/public/provider.json':;
'/srv/leap/couchdb/designs/tmp_users':
recurse => true,