ansible/roles/logall-cachan/templates/logrotate.d/firewall.j2

29 lines
628 B
Django/Jinja

{{ ansible_header | comment }}
/var/log/firewall/trace.log
/var/log/firewall/filtre.log
/var/log/firewall/iptables.err
/var/log/firewall/iptables.log {
rotate 1
weekly
missingok
notifempty
compress
postrotate
/usr/sbin/invoke-rc.d rsyslog rotate >/dev/null;
endscript
}
/var/log/firewall/logall.log {
daily
compress
compresscmd /bin/bzip2
uncompresscmd /bin/bunzip2
compressext .bz2
rotate 365
notifempty
sharedscripts
postrotate
/usr/sbin/invoke-rc.d rsyslog rotate >/dev/null;
endscript
}