Skip to content

Commit 35781a1

Browse files
authored
Add log-tag and log-send-hostname
1 parent fa77a39 commit 35781a1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

haproxy/templates/haproxy.jinja

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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') }}

0 commit comments

Comments
 (0)