ArielGlenn has uploaded a new change for review.
https://gerrit.wikimedia.org/r/266480
Change subject: make default log rotation for apache be 30 days
......................................................................
make default log rotation for apache be 30 days
This doesn't impact mediawiki installations, they have a separate config,
but it does account for misc services where there is no explicit setting
Change-Id: Ic7346157fc4ad39ea25a01c81edd2bb8b73863d6
---
M modules/apache/manifests/logrotate.pp
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/80/266480/1
diff --git a/modules/apache/manifests/logrotate.pp
b/modules/apache/manifests/logrotate.pp
index fbdeebe..fd4537a 100644
--- a/modules/apache/manifests/logrotate.pp
+++ b/modules/apache/manifests/logrotate.pp
@@ -1,11 +1,11 @@
# === Class apache::logrotate
#
# Allows defining rotation periodicity and the number of logs to keep
-# for any host with apache directly via hiera. Defaults are what debian sets.
-# We might want to make this a bit less long though
+# for any host with apache directly via hiera. Defaults are short so
+# that we don't worry about disks filling or about data retention.
class apache::logrotate(
- $period = 'weekly',
- $rotate = 52,
+ $period = 'daily',
+ $rotate = 30,
) {
augeas { 'Apache2 logs':
--
To view, visit https://gerrit.wikimedia.org/r/266480
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic7346157fc4ad39ea25a01c81edd2bb8b73863d6
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: ArielGlenn <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits