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.

30 rindas
913B

  1. {% from "logrotate/map.jinja" import logrotate with context %}
  2. include:
  3. - logrotate
  4. logrotate_directory:
  5. file.directory:
  6. - name: {{ logrotate.include_dir }}
  7. - user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}
  8. - group: {{ salt['pillar.get']('logrotate:config:group', logrotate.group) }}
  9. - mode: 755
  10. - makedirs: True
  11. - require:
  12. - pkg: logrotate
  13. logrotate_config:
  14. file.managed:
  15. - name: {{ logrotate.conf_file }}
  16. - source: salt://logrotate/files/{{ salt['grains.get']('os_family') }}/logrotate.conf
  17. - template: jinja
  18. - user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}
  19. - group: {{ salt['pillar.get']('logrotate:config:group', logrotate.group) }}
  20. - mode: {{ salt['pillar.get']('logrotate:config:mode', '644') }}
  21. - require:
  22. - pkg: logrotate
  23. - watch_in:
  24. - service: {{ logrotate.service }}