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.

23 lines
497B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=jinja
  3. {% set os_family_map = salt['grains.filter_by']({
  4. 'RedHat': {
  5. 'service': 'crond',
  6. },
  7. 'Arch': {
  8. 'service': 'logrotate.timer',
  9. },
  10. },
  11. grain="os_family",
  12. merge=salt['pillar.get']('logrotate:lookup'))
  13. {% do default_settings.logrotate.update(os_family_map) %}
  14. {% set logrotate = salt['pillar.get'](
  15. 'logrotate',
  16. default=default_settings.logrotate,
  17. merge=True
  18. )
  19. %}