aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/templates/logrotate
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-10-30 19:35:13 -0700
committerDan Fandrich <danf@mageia.org>2024-10-30 19:40:15 -0700
commit4d6133c274f6ea67bbb32b0c966c83f1adbd84ac (patch)
tree12f2bdfa58861df050fbef88b8d08a621d2273cd /modules/apache/templates/logrotate
parent1c257b4fe3d712d167433bdc75df44fc01895fa8 (diff)
downloadpuppet-4d6133c274f6ea67bbb32b0c966c83f1adbd84ac.tar
puppet-4d6133c274f6ea67bbb32b0c966c83f1adbd84ac.tar.gz
puppet-4d6133c274f6ea67bbb32b0c966c83f1adbd84ac.tar.bz2
puppet-4d6133c274f6ea67bbb32b0c966c83f1adbd84ac.tar.xz
puppet-4d6133c274f6ea67bbb32b0c966c83f1adbd84ac.zip
Reduce the number of old Apache logs on friteuse (mga#33670)
They're currently taking up half the available disk which is currently full.
Diffstat (limited to 'modules/apache/templates/logrotate')
-rw-r--r--modules/apache/templates/logrotate6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/apache/templates/logrotate b/modules/apache/templates/logrotate
index 0ae57120..2788a942 100644
--- a/modules/apache/templates/logrotate
+++ b/modules/apache/templates/logrotate
@@ -1,7 +1,11 @@
/var/log/httpd/*_log /var/log/httpd/apache_runtime_status /var/log/httpd/ssl_mutex {
-<% if @hostname == 'duvel' then %>
+<% if @hostname == 'duvel' %>
rotate 60
daily
+<% elif @hostname == 'friteuse' %>
+ # The virtual disk is very small so keep log sizes down
+ rotate 52
+ weekly
<% else %>
rotate <%= scope.lookupvar('apache::var::httpdlogs_rotate') %>
monthly