Add logrotate configuration

This commit is contained in:
Joshua Boniface 2019-08-11 15:41:10 -04:00 committed by Joshua Boniface
parent 030a3ded99
commit b75e84a124
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
}