40 lines
846 B
Text
40 lines
846 B
Text
![]() |
# This file is managed by Ansible.
|
||
|
# Any manual changes will be overwritten.
|
||
|
|
||
|
# see "man logrotate" for details
|
||
|
# rotate log files weekly
|
||
|
{{ server_bootstrap_logrotate_frequency }}
|
||
|
|
||
|
# keep 4 weeks worth of backlogs
|
||
|
rotate {{ server_bootstrap_logrotate_rotate_count }}
|
||
|
|
||
|
# create new (empty) log files after rotating old ones
|
||
|
create
|
||
|
|
||
|
# use date as a suffix of the rotated file
|
||
|
dateext
|
||
|
|
||
|
{% if server_bootstrap_logrotate_compress %}
|
||
|
# compress the rotated files
|
||
|
compress
|
||
|
{% endif %}
|
||
|
|
||
|
# packages drop log rotation information into this directory
|
||
|
include /etc/logrotate.d
|
||
|
|
||
|
# no packages own wtmp and btmp -- we'll rotate them here
|
||
|
/var/log/wtmp {
|
||
|
missingok
|
||
|
monthly
|
||
|
create 0664 root utmp
|
||
|
rotate 1
|
||
|
}
|
||
|
|
||
|
/var/log/btmp {
|
||
|
missingok
|
||
|
monthly
|
||
|
create 0660 root utmp
|
||
|
rotate 1
|
||
|
}
|
||
|
|
||
|
# system-specific logs may be also be configured here
|