Saltstack Official Logrotate Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

23 rindas
748B

  1. {% from "logrotate/map.jinja" import logrotate with context %}
  2. include:
  3. - logrotate
  4. logrotate-config:
  5. file.managed:
  6. - name: {{ logrotate.conf_file }}
  7. - source: salt://logrotate/templates/logrotate.conf.tmpl
  8. - template: jinja
  9. - user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}
  10. - group: {{ salt['pillar.get']('logrotate:config:group', logrotate.group) }}
  11. - mode: {{ salt['pillar.get']('logrotate:config:mode', '644') }}
  12. logrotate-directory:
  13. file.directory:
  14. - name: {{ logrotate.include_dir }}
  15. - user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}
  16. - group: {{ salt['pillar.get']('logrotate:config:group', logrotate.group) }}
  17. - mode: 755
  18. - makedirs: True