Saltstack Official Logrotate Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

23 行
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. %}