File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ global
3030{% - else %}
3131 log /dev/log local0
3232 log /dev/log local1 notice
33+ {% - endif %}
34+ {% - if salt ['pillar.get' ]('haproxy:global:log-tag' ) %}
35+ log-tag {{ salt['pillar.get'] ('haproxy:global:log-tag', 'haproxy') }}
36+ {% - endif %}
37+ {% - if salt ['pillar.get' ]('haproxy:global:log-send-hostname' ) %}
38+ log-send-hostname {{ salt['pillar.get'] ('haproxy:global:log-send-hostname') }}
3339{% - endif %}
3440 user {{ salt['pillar.get'] ('haproxy:global:user', 'haproxy') }}
3541 group {{ salt['pillar.get'] ('haproxy:global:group', 'haproxy') }}
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ haproxy:
1717 log:
1818 - 127.0.0.1 local2
1919 - 127.0.0.1 local1 notice
20+ # Option log-tag parameter, sets the tag field in the syslog header
21+ log-tag: haproxy
22+ # Optional log-send-hostname parameter, sets the hostname field in the syslog header
23+ log-send-hostname: localhost
2024 stats:
2125 enable: True
2226 socketpath: /var/lib/haproxy/stats
You can’t perform that action at this time.
0 commit comments