Dzahn has submitted this change and it was merged.

Change subject: Gerrit: Go back to pruning logs every 7 days
......................................................................


Gerrit: Go back to pruning logs every 7 days

Gerrit didn't prune these after 7, just continued rotating. Oh well

Change-Id: Id7e002f4ec13016d88e4ee990d314b4e6a376939
---
M modules/gerrit/manifests/crons.pp
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Hashar: Looks good to me, but someone else must approve
  Dzahn: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/gerrit/manifests/crons.pp 
b/modules/gerrit/manifests/crons.pp
index a1cfc18..d1409fa 100644
--- a/modules/gerrit/manifests/crons.pp
+++ b/modules/gerrit/manifests/crons.pp
@@ -26,7 +26,7 @@
     cron { 'clear_gerrit_logs':
     # Gerrit rotates their own logs, but doesn't clean them out
     # Delete logs older than a week
-        command => 'find /var/lib/gerrit2/review_site/logs/*.gz -mtime +10 
-exec rm {} \\;',
+        command => 'find /var/lib/gerrit2/review_site/logs/*.gz -mtime +7 
-exec rm {} \\;',
         user    => 'root',
         hour    => 1
     }

-- 
To view, visit https://gerrit.wikimedia.org/r/315519
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id7e002f4ec13016d88e4ee990d314b4e6a376939
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Chad <ch...@wikimedia.org>
Gerrit-Reviewer: Dzahn <dz...@wikimedia.org>
Gerrit-Reviewer: Hashar <has...@free.fr>
Gerrit-Reviewer: RobH <r...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to