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.

10 年之前
1234567891011121314151617181920212223242526
  1. {% set logrotate = salt['grains.filter_by']({
  2. 'RedHat': {
  3. 'pkg' : 'logrotate',
  4. 'service' : 'cron',
  5. 'conf_file' : '/etc/logrotate.conf',
  6. 'include_dir' : '/etc/logrotate.d',
  7. 'user' : 'root',
  8. 'group' : 'root',
  9. },
  10. 'Arch': {
  11. 'pkg' : 'logrotate',
  12. 'service' : 'logrotate.timer',
  13. 'conf_file' : '/etc/logrotate.conf',
  14. 'include_dir' : '/etc/logrotate.d',
  15. 'user' : 'root',
  16. 'group' : 'root',
  17. },
  18. 'Debian': {
  19. 'pkg' : 'logrotate',
  20. 'service' : 'cron',
  21. 'conf_file' : '/etc/logrotate.conf',
  22. 'include_dir' : '/etc/logrotate.d',
  23. 'user' : 'root',
  24. 'group' : 'root',
  25. },
  26. }, merge=salt['pillar.get']('logrotate')) %}