Saltstack Official Syslog-NG Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {#- Get the `tplroot` from `tpldir` #}
  4. {%- set tplroot = tpldir.split('/')[0] %}
  5. {%- set sls_config_file = tplroot ~ '.config.file' %}
  6. {%- from tplroot ~ "/map.jinja" import syslog_ng with context %}
  7. include:
  8. - {{ sls_config_file }}
  9. syslog_ng/service/running:
  10. service.running:
  11. - name: {{ syslog_ng.service }}
  12. - enable: true
  13. - require:
  14. - sls: {{ sls_config_file }}