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.

20 lines
518B

  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. logrotate_directory:
  9. file.directory:
  10. - name: {{ logrotate.include_dir }}
  11. - user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}
  12. - group: {{ salt['pillar.get']('logrotate:config:group', logrotate.group) }}
  13. - mode: 755
  14. - makedirs: True
  15. - require:
  16. - pkg: logrotate