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

21 行
537B

  1. {% from "logrotate/map.jinja" import logrotate with context %}
  2. logrotate:
  3. pkg.installed:
  4. - name: {{ logrotate.pkg|json }}
  5. service.running:
  6. - name: {{ logrotate.service }}
  7. - enable: True
  8. - reload: True
  9. logrotate_directory:
  10. file.directory:
  11. - name: {{ logrotate.include_dir }}
  12. - user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}
  13. - group: {{ salt['pillar.get']('logrotate:config:group', logrotate.group) }}
  14. - mode: 755
  15. - makedirs: True
  16. - require:
  17. - pkg: logrotate