Make mirrorlists xz compress their gigantic messages logs
This commit is contained in:
parent
f85602b776
commit
b123373ce9
2 changed files with 20 additions and 0 deletions
15
roles/mirrormanager/mirrorlist2/files/logrotate-syslog
Normal file
15
roles/mirrormanager/mirrorlist2/files/logrotate-syslog
Normal file
|
@ -0,0 +1,15 @@
|
|||
/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
|
||||
compress
|
||||
compresscmd /usr/bin/xz
|
||||
uncompresscmd /usr/bin/xz
|
||||
compressext .xz
|
||||
}
|
|
@ -93,3 +93,8 @@
|
|||
- restart mirrorlist-server
|
||||
tags:
|
||||
- mirrorlist2
|
||||
|
||||
- name: setup logrotate log for mirrorlists
|
||||
copy: src=logrotate-syslog dest=/etc/logrotate.d/syslog
|
||||
tags:
|
||||
- mirrorlist2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue