[feat] Move logrotate configuration settings to pillar

This commit is contained in:
William Wernert
2020-10-06 13:22:44 -04:00
parent 94f15c63ce
commit 9737b01676
3 changed files with 15 additions and 9 deletions

11
pillar/logrotate/init.sls Normal file
View File

@@ -0,0 +1,11 @@
logrotate:
conf: |
daily
rotate 14
missingok
copytruncate
nocompress
create
extension .log
dateext
dateyesterday

View File

@@ -1,6 +1,7 @@
base:
'*':
- patch.needs_restarting
- logrotate
'*_eval or *_helix or *_heavynode or *_sensor or *_standalone or *_import':
- match: compound