Przeglądaj źródła

Add last_include pillar key

master
Nicolas Rodriguez 7 lat temu
rodzic
commit
fb4f2adfb5
3 zmienionych plików z 11 dodań i 2 usunięć
  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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

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

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

source:
- s_src:
- system: null

Ładowanie…
Anuluj
Zapisz