1
0
Fork 0

added FreeBSD support

This commit is contained in:
msiebeneicher 2016-02-04 10:45:23 +01:00
parent 6caf737c50
commit 085fc6c72b
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,23 @@
# 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
# RPM packages drop log rotation information into this directory
include /usr/local/etc/logrotate.d
# Example
#/var/log/lastlog {
# monthly
# rotate 1
#}
# system-specific logs may be configured here

View File

@ -31,4 +31,12 @@
'user' : 'root',
'group' : 'root',
},
'FreeBSD': {
'pkg' : 'logrotate',
'service' : 'cron',
'conf_file' : '/usr/local/etc/logrotate.conf',
'include_dir' : '/usr/local/etc/logrotate.d',
'user' : 'root',
'group' : 'wheel',
},
}, merge=salt['pillar.get']('logrotate:lookup')) %}