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.

28 rindas
802B

  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. {%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
  8. include:
  9. - {{ sls_package_install }}
  10. syslog_ng/config/install:
  11. file.managed:
  12. - name: {{ syslog_ng.syslog_ng_config }}
  13. - source: {{ files_switch(['syslog-ng.conf'],
  14. lookup='syslog_ng/config/install'
  15. )
  16. }}
  17. - template: jinja
  18. - user: root
  19. - group: {{ syslog_ng.rootgroup }}
  20. - mode: 644
  21. - require:
  22. - sls: {{ sls_package_install }}
  23. - context:
  24. syslog_ng: {{ syslog_ng | json }}