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.

22 lines
403B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {% from "logrotate/map.jinja" import logrotate with context %}
  4. {%- if logrotate.service is not none %}
  5. include:
  6. - logrotate.config
  7. - logrotate.install
  8. logrotate:
  9. service.running:
  10. - name: {{ logrotate.service }}
  11. - enable: True
  12. - require:
  13. - pkg: logrotate-pkg
  14. - file: logrotate-config
  15. - file: logrotate-directory
  16. {%- endif %}