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.

35 lines
1.1KB

  1. {% set logrotate = salt['grains.filter_by']({
  2. 'RedHat': {
  3. 'pkg' : 'logrotate',
  4. 'service' : 'crond',
  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. 'Suse': {
  27. 'pkg' : 'logrotate',
  28. 'service' : 'cron',
  29. 'conf_file' : '/etc/logrotate.conf',
  30. 'include_dir' : '/etc/logrotate.d',
  31. 'user' : 'root',
  32. 'group' : 'root',
  33. },
  34. }, merge=salt['pillar.get']('logrotate:lookup')) %}