Add logrotate configuration
This commit is contained in:
parent
c0acd3e994
commit
f98a2ee433
|
@ -29,6 +29,12 @@
|
|||
src: system/blacklist.j2
|
||||
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)
|
||||
- include: ceph/main.yml
|
||||
tags: pvc-ceph
|
||||
|
|
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue