added FreeBSD support
This commit is contained in:
parent
6caf737c50
commit
085fc6c72b
|
@ -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
|
|
@ -31,4 +31,12 @@
|
||||||
'user' : 'root',
|
'user' : 'root',
|
||||||
'group' : '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')) %}
|
}, merge=salt['pillar.get']('logrotate:lookup')) %}
|
||||||
|
|
Loading…
Reference in New Issue