Browse Source

Add last_include pillar key

tags/v0.2.0
Nicolas Rodriguez 7 years ago
parent
commit
fb4f2adfb5
3 changed files with 11 additions and 2 deletions
  1. +4
    -2
      pillar.example
  2. +4
    -0
      syslog_ng/files/syslog-ng.conf
  3. +3
    -0
      syslog_ng/os_family_map.yml

+ 4
- 2
pillar.example View File

@@ -2,7 +2,9 @@ syslog_ng:
module:
- tfson
include:
- /etc/syslog-ng/conf.d/
- scl.conf
last_include:
- /etc/syslog-ng/conf.d/*.conf
version: 3.5
options:
- threaded: yes
@@ -12,7 +14,7 @@ syslog_ng:
- chain_hostnames: no
- check_hostname: no
source:
- s_internal:
- s_internal:
- internal: null
- s_local:
- unix-stream: /dev/log

+ 4
- 0
syslog_ng/files/syslog-ng.conf View File

@@ -37,3 +37,7 @@ log {
};

{% endfor %}

{%- for inc in syslog_ng.get('last_include', []) %}
@include {{ rule_builder(inc) }}
{%- endfor %}

+ 3
- 0
syslog_ng/os_family_map.yml View File

@@ -21,6 +21,9 @@ Debian:
include:
- scl.conf

last_include:
- /etc/syslog-ng/conf.d/*.conf

source:
- s_src:
- system: null

Loading…
Cancel
Save