Logrotate SaltStack Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
formula-logrotate/pillar.example

50 lines
1.1 KiB

9 years ago
# vim: sts=2 ts=2 sw=2 et ai
logrotate:
# default OS values can be overridden in 'lookup' dict
#lookup:
#pkg: logrotate
#service: crond
default_config:
weekly: True
rotate: 52
create: True
compress: True
dateext: True
9 years ago
jobs:
/tmp/var/log/mysql/error:
config:
- weekly
- missingok
- rotate 52
- compress
- delaycompress
- notifempty
- create 640 root adm
- sharedscripts
mysql:
path:
- /tmp/var/log/mysql/*.log
config:
- weekly
- missingok
- rotate 52
- compress
- delaycompress
- notifempty
- create 640 root adm
- sharedscripts
syslog:
path:
- /var/log/cron
- /var/log/maillog
- /var/log/messages
- /var/log/secure
- /var/log/spooler
- /var/log/slapd.log
config:
- sharedscripts
- postrotate
- /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
- endscript