From d94f587e3777899c17cf37da7cd302d7b35ad0a6 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:29 -0400 Subject: [PATCH] Remove obsolete logrotate settings --- .../etc/logrotate.d/rsyslog-loghost.j2 | 23 ------------------- .../base/templates/etc/logrotate.d/rsyslog.j2 | 2 -- 2 files changed, 25 deletions(-) delete mode 100644 roles/base/templates/etc/logrotate.d/rsyslog-loghost.j2 diff --git a/roles/base/templates/etc/logrotate.d/rsyslog-loghost.j2 b/roles/base/templates/etc/logrotate.d/rsyslog-loghost.j2 deleted file mode 100644 index 243ecf7..0000000 --- a/roles/base/templates/etc/logrotate.d/rsyslog-loghost.j2 +++ /dev/null @@ -1,23 +0,0 @@ -# Logrotate configuration for loghost archives -# {{ ansible_managed }} - -/srv/log/kern.log -/srv/log/daemon.log -/srv/log/haproxy.log -/srv/log/auth.log -/srv/log/cron.log -/srv/log/mail.log -/srv/log/boot.log -/srv/log/system.log -{ - weekly - missingok - copytruncate - dateext - notifempty - sharedscripts - postrotate - /usr/lib/rsyslog/rsyslog-rotate &>/dev/null - /usr/local/sbin/loghost-archive.sh &>/dev/null - endscript -} diff --git a/roles/base/templates/etc/logrotate.d/rsyslog.j2 b/roles/base/templates/etc/logrotate.d/rsyslog.j2 index 6ae2f58..1f17878 100644 --- a/roles/base/templates/etc/logrotate.d/rsyslog.j2 +++ b/roles/base/templates/etc/logrotate.d/rsyslog.j2 @@ -3,11 +3,9 @@ /var/log/kern.log /var/log/daemon.log -/var/log/haproxy.log /var/log/auth.log /var/log/cron.log /var/log/mail.log -/var/log/boot.log /var/log/system.log { rotate {{ logrotate_keepcount }}