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.

21 satır
539B

  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