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

пре 5 година
пре 5 година
123456789101112131415161718192021222324252627
  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: root
  20. - mode: 644
  21. - require:
  22. - sls: {{ sls_package_install }}
  23. - context:
  24. syslog_ng: {{ syslog_ng | json }}