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.
|
- # -*- coding: utf-8 -*-
- # vim: ft=sls
-
- {#- Get the `tplroot` from `tpldir` #}
- {%- set tplroot = tpldir.split('/')[0] %}
- {%- set sls_package_install = tplroot ~ '.package.install' %}
- {%- from tplroot ~ "/map.jinja" import syslog_ng with context %}
- {%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
-
- include:
- - {{ sls_package_install }}
-
- syslog_ng/config/install:
- file.managed:
- - name: {{ syslog_ng.syslog_ng_config }}
- - source: {{ files_switch(['syslog-ng.conf'],
- lookup='syslog_ng/config/install'
- )
- }}
- - template: jinja
- - user: root
- - group: {{ syslog_ng.rootgroup }}
- - mode: 644
- - require:
- - sls: {{ sls_package_install }}
- - context:
- syslog_ng: {{ syslog_ng | json }}
|