diff options
author | Dan Fandrich <danf@mageia.org> | 2024-10-30 19:35:13 -0700 |
---|---|---|
committer | Dan Fandrich <danf@mageia.org> | 2024-10-30 19:40:15 -0700 |
commit | 4d6133c274f6ea67bbb32b0c966c83f1adbd84ac (patch) | |
tree | 12f2bdfa58861df050fbef88b8d08a621d2273cd | |
parent | 1c257b4fe3d712d167433bdc75df44fc01895fa8 (diff) | |
download | puppet-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.
-rw-r--r-- | modules/apache/templates/logrotate | 6 |
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 |