@@ -1,4 +1,9 @@ | |||
syslog_ng: | |||
module: | |||
- tfson | |||
include: | |||
- /etc/syslog-ng/conf.d/ | |||
version: 3.5 | |||
options: | |||
- threaded: yes | |||
- use_dns: no |
@@ -16,9 +16,17 @@ def rule_builder(rule): | |||
return rule[1:] | |||
return '"%s"' % rule | |||
%>\ | |||
@version: 3.3 | |||
@module tfjson | |||
@version: ${ syslog_config.get('version', '3.3') } | |||
% for module in syslog_config.get('module', []): | |||
@module ${ rule_builder(module) } | |||
% endfor | |||
% for inc in syslog_config.get('include', []): | |||
@include ${ rule_builder(inc) } | |||
% endfor | |||
options { | |||
% for rule in syslog_config.get('options', []): |