Saltstack Official Syslog-NG 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.

24 rindas
610B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {#- Get the `tplroot` from `tpldir` #}
  4. {%- set tplroot = tpldir.split('/')[0] %}
  5. {%- set sls_package_install = tplroot ~ '.package.install' %}
  6. {%- from tplroot ~ "/map.jinja" import syslog_ng with context %}
  7. include:
  8. - {{ sls_package_install }}
  9. syslog_ng/config/install:
  10. file.managed:
  11. - name: {{ syslog_ng.syslog_ng_config }}
  12. - source: {{ syslog_ng.syslog_ng_config_src }}
  13. - template: jinja
  14. - user: root
  15. - group: root
  16. - mode: 644
  17. - require:
  18. - sls: {{ sls_package_install }}
  19. - context:
  20. syslog_ng: {{ syslog_ng | json }}