We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed93bb0 + a73a32f commit c02f63fCopy full SHA for c02f63f
pillar.example
@@ -1,4 +1,9 @@
1
syslog_ng:
2
+ module:
3
+ - tfson
4
+ include:
5
+ - /etc/syslog-ng/conf.d/
6
+ version: 3.5
7
options:
8
- threaded: yes
9
- use_dns: no
syslog_ng/files/syslog-ng.conf
@@ -16,9 +16,17 @@ def rule_builder(rule):
16
return rule[1:]
17
return '"%s"' % rule
18
%>\
19
-@version: 3.3
20
21
-@module tfjson
+@version: ${ syslog_config.get('version', '3.3') }
+
22
+% for module in syslog_config.get('module', []):
23
+@module ${ rule_builder(module) }
24
+% endfor
25
26
+% for inc in syslog_config.get('include', []):
27
+@include ${ rule_builder(inc) }
28
29
30
31
options {
32
% for rule in syslog_config.get('options', []):
0 commit comments