Add logrotate configuration
This commit is contained in:
parent
030a3ded99
commit
b75e84a124
|
@ -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