Saltstack Official Logrotate 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.

48 lines
1021B

  1. # vim: sts=2 ts=2 sw=2 et ai
  2. logrotate:
  3. lookup:
  4. pkg: logrotate
  5. service: crond
  6. default_config:
  7. weekly: True
  8. rotate: 52
  9. create: True
  10. compress: True
  11. dateext: True
  12. jobs:
  13. /tmp/var/log/mysql/error:
  14. config:
  15. - weekly
  16. - missingok
  17. - rotate 52
  18. - compress
  19. - delaycompress
  20. - notifempty
  21. - create 640 root adm
  22. - sharedscripts
  23. mysql:
  24. path:
  25. - /tmp/var/log/mysql/*.log
  26. config:
  27. - weekly
  28. - missingok
  29. - rotate 52
  30. - compress
  31. - delaycompress
  32. - notifempty
  33. - create 640 root adm
  34. - sharedscripts
  35. syslog:
  36. path:
  37. - /var/log/cron
  38. - /var/log/maillog
  39. - /var/log/messages
  40. - /var/log/secure
  41. - /var/log/spooler
  42. - /var/log/slapd.log
  43. config:
  44. - sharedscripts
  45. - postrotate
  46. - /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
  47. - endscript