Browse Source

Make @module parametrized

tags/v0.2.0
a.genus 9 years ago
parent
commit
4f43b3d1d3
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      syslog_ng/files/syslog-ng.conf

+ 3
- 1
syslog_ng/files/syslog-ng.conf View File

@@ -19,7 +19,9 @@ def rule_builder(rule):

@version: ${ syslog_config.get('version', '3.3') }

@module tfjson
% for module in syslog_config.get('module', ['tfjson']):
@module ${ rule_builder(module) }
% endfor

% for inc in syslog_config.get('include', []):
@include ${ rule_builder(inc) }

Loading…
Cancel
Save