[feat] Move logrotate configuration settings to pillar

This commit is contained in:
William Wernert committed 2020-10-06 13:22:44 -04:00
1 parent 94f15c63ce
commit 9737b01676
3 files changed
+15 -9

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
logrotate:
conf: |
daily
rotate 14
missingok
copytruncate
nocompress
create
extension .log
dateext
dateyesterday
+1
View File
@@ -1,6 +1,7 @@
base:
'*':
- patch.needs_restarting
- logrotate
'*_eval or *_helix or *_heavynode or *_sensor or *_standalone or *_import':
- match: compound
+3 -9
View File
@@ -1,3 +1,5 @@
{%- set logrotate_conf = salt['pillar.get']['logrotate:conf'] %}
/opt/so/log/aptcacher-ng/*.log
/opt/so/log/idstools/*.log
/opt/so/log/nginx/*.log
@@ -13,13 +15,5 @@
/opt/so/log/telegraf/*.log
/opt/so/log/redis/*.log
{
daily
rotate 2
missingok
copytruncate
nocompress
create
extension .log
dateext
dateyesterday
{{ logrotate_conf }}
}