Explorar el Código

Add last_include pillar key

tags/v0.2.0
Nicolas Rodriguez hace 7 años
padre
commit
fb4f2adfb5
Se han modificado 3 ficheros con 11 adiciones y 2 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

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

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

source:
- s_src:
- system: null

Cargando…
Cancelar
Guardar