mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
improved consolidated logrotate support
This commit is contained in:
parent
c91ab61bab
commit
a07d62ab33
3 changed files with 31 additions and 10 deletions
|
@ -1,5 +0,0 @@
|
|||
/var/log/salt/master {
|
||||
missingok
|
||||
sharedscripts
|
||||
endscript
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
/var/log/salt/minion {
|
||||
missingok
|
||||
sharedscripts
|
||||
endscript
|
||||
}
|
31
pkg/salt-common.logrotate
Normal file
31
pkg/salt-common.logrotate
Normal file
|
@ -0,0 +1,31 @@
|
|||
/var/log/salt/master {
|
||||
weekly
|
||||
missingok
|
||||
rotate 7
|
||||
compress
|
||||
notifempty
|
||||
}
|
||||
|
||||
/var/log/salt/minion {
|
||||
weekly
|
||||
missingok
|
||||
rotate 7
|
||||
compress
|
||||
notifempty
|
||||
}
|
||||
|
||||
/var/log/salt/key {
|
||||
weekly
|
||||
missingok
|
||||
rotate 7
|
||||
compress
|
||||
notifempty
|
||||
}
|
||||
|
||||
/var/log/salt/*.log {
|
||||
weekly
|
||||
missingok
|
||||
rotate 7
|
||||
compress
|
||||
notifempty
|
||||
}
|
Loading…
Add table
Reference in a new issue