We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d2b72c commit cbcb50aCopy full SHA for cbcb50a
2 files changed
haproxy/templates/haproxy.jinja
@@ -23,8 +23,14 @@
23
# Global settings
24
#------------------
25
global
26
+{%- if salt['pillar.get']('haproxy:global:log', []) != [] %}
27
+{%- for log in salt['pillar.get']('haproxy:global:log') %}
28
+ log {{log}}
29
+{%- endfor %}
30
+{%- else %}
31
log /dev/log local0
32
log /dev/log local1 notice
33
+{%- endif %}
34
user {{ salt['pillar.get']('haproxy:global:user', 'haproxy') }}
35
group {{ salt['pillar.get']('haproxy:global:group', 'haproxy') }}
36
{%- if salt['pillar.get']('haproxy:global:chroot:enable', 'no') == True %}
pillar.example
@@ -6,6 +6,9 @@ haproxy:
6
enabled: True
7
config_file_path: /etc/haproxy/haproxy.cfg
8
global:
9
+ log:
10
+ - 127.0.0.1 local2
11
+ - 127.0.0.1 local1 notice
12
stats:
13
enable: True
14
socketpath: /var/lib/haproxy/stats
0 commit comments