[ipa/server] Add logrotate config for krb5kdc

The log files for krb5kdc had around 1 GB each on ipa01.stg. To prevent this in
future let us replace the original config with one that is compressing the old logs.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2024-11-04 15:30:48 +01:00 committed by zlopez
parent 318febc512
commit b3a22d9049
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,10 @@
var/log/krb5kdc.log {
missingok
notifempty
monthly
rotate 12
compress
postrotate
systemctl reload krb5kdc.service || true
endscript
}

View file

@ -613,6 +613,12 @@
- config
- krb5
- name: Copy the new krb5 logrotate config
ansible.builtin.copy:
src: logrotate_krb5kdc
dest: /etc/logrotate.d/krb5kdc
mode: '0644'
backup: yes
- import_tasks: scripts.yml