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

module: module:
- tfson - tfson
include: include:
- /etc/syslog-ng/conf.d/
- scl.conf
last_include:
- /etc/syslog-ng/conf.d/*.conf
version: 3.5 version: 3.5
options: options:
- threaded: yes - threaded: yes
- chain_hostnames: no - chain_hostnames: no
- check_hostname: no - check_hostname: no
source: source:
- s_internal:
- s_internal:
- internal: null - internal: null
- s_local: - s_local:
- unix-stream: /dev/log - unix-stream: /dev/log

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

}; };


{% endfor %} {% endfor %}

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

+ 3
- 0
syslog_ng/os_family_map.yml View File

include: include:
- scl.conf - scl.conf


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

source: source:
- s_src: - s_src:
- system: null - system: null

Loading…
Cancel
Save