mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
docker-distribution: make registry boxes compress gigantic messages files
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
20
roles/docker-distribution/files/syslog-logrotate
Normal file
20
roles/docker-distribution/files/syslog-logrotate
Normal file
@@ -0,0 +1,20 @@
|
||||
/var/log/cron
|
||||
/var/log/maillog
|
||||
/var/log/messages
|
||||
/var/log/secure
|
||||
/var/log/spooler
|
||||
{
|
||||
sharedscripts
|
||||
postrotate
|
||||
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
|
||||
endscript
|
||||
daily
|
||||
rotate 7
|
||||
missingok
|
||||
ifempty
|
||||
compress
|
||||
compresscmd /usr/bin/xz
|
||||
uncompresscmd /usr/bin/xz
|
||||
compressext .xz
|
||||
dateext
|
||||
}
|
||||
@@ -47,3 +47,9 @@
|
||||
tags:
|
||||
- docker-distribution
|
||||
|
||||
- name: override the default syslog logrotate file
|
||||
copy:
|
||||
src=syslog-logrotate
|
||||
dest=/etc/logrotate.d/syslog
|
||||
tags:
|
||||
- docker-distribution
|
||||
|
||||
Reference in New Issue
Block a user