Add logrotate configuration

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:21 -04:00
parent c0acd3e994
commit f98a2ee433
2 changed files with 26 additions and 0 deletions

View File

@ -29,6 +29,12 @@
src: system/blacklist.j2 src: system/blacklist.j2
dest: /etc/modprobe.d/blacklist.conf dest: /etc/modprobe.d/blacklist.conf
# Logrotate configuration
- name: add logrotate configuration
template:
src: system/pvc.j2
dest: /etc/logrotate.d/pvc
# Install base databases (coordinators only) # Install base databases (coordinators only)
- include: ceph/main.yml - include: ceph/main.yml
tags: pvc-ceph tags: pvc-ceph

View File

@ -0,0 +1,20 @@
/var/log/pvc/*.log {
weekly
rotate 8
copytruncate
delaycompress
compress
notifempty
missingok
su root root
}
/var/log/pvc/*/*.log {
weekly
rotate 8
copytruncate
delaycompress
compress
notifempty
missingok
su root root
}