Skip to content
Snippets Groups Projects
Commit 1e034c46 authored by MyIgel's avatar MyIgel :fire:
Browse files

Logrotate: initial commit

parent b32e395c
Branches
No related tags found
1 merge request!110Added logrotate
Pipeline #
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
compress
# if active, an archived log is compressed the next time that the log is rotated
delaycompress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp, or 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 configured here
logrotate:
pkg.installed:
- pkgs:
- logrotate
service.running:
- enable: True
- require:
- pkg: logrotate
/etc/logrotate.conf:
file.managed:
- source: salt://logrotate/files/logrotate.conf
- user: root
- group: root
- mode: 644
- require:
- pkg: logrotate
......@@ -14,6 +14,7 @@ base:
- common.sudo
- ntp
- prometheus
- logrotate
'bgp*.ffm.freifunk.net':
- bird
- bird.bgp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment