Skip to content

Commit 5ae2ee9

Browse files
committed
Implement support for setting http-reuse
1 parent b9ce3cf commit 5ae2ee9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

haproxy/templates/haproxy.jinja

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ defaults
149149
{%- if 'maxconn' in salt['pillar.get']('haproxy:defaults', {}) %}
150150
maxconn {{ salt['pillar.get']('haproxy:defaults:maxconn') }}
151151
{%- endif %}
152+
{%- if 'http_reuse' in salt['pillar.get']('haproxy:defaults', {}) %}
153+
http-reuse {{ salt['pillar.get']('haproxy:defaults:http_reuse') }}
154+
{%- endif %}
152155
{%- if 'timeouts' in salt['pillar.get']('haproxy:defaults', {}) %}
153156
{%- for timeout_type, timeout_value in salt['pillar.get']('haproxy:defaults:timeouts').items() %}
154157
timeout {{ timeout_type }} {{ timeout_value }}
@@ -354,6 +357,9 @@ listen {{ listener.get('name', listener_name) }}
354357
{%- if 'maxconn' in listener %}
355358
maxconn {{ listener.maxconn }}
356359
{%- endif %}
360+
{%- if 'http_reuse' in listener %}
361+
http-reuse {{ listener.http_reuse }}
362+
{%- endif %}
357363
{%- if 'timeouts' in listener %}
358364
{%- for timeout_type, timeout_value in listener.timeouts.items() %}
359365
timeout {{ timeout_type }} {{ timeout_value }}
@@ -526,6 +532,9 @@ backend {{ backend.get('name', backend_name) }}
526532
{%- if 'balance' in backend %}
527533
balance {{ backend.balance }}
528534
{%- endif %}
535+
{%- if 'http_reuse' in backend %}
536+
http-reuse {{ backend.http_reuse }}
537+
{%- endif %}
529538
{%- if 'timeouts' in backend %}
530539
{%- for timeout_type, timeout_value in backend.timeouts.items() %}
531540
timeout {{ timeout_type }} {{ timeout_value }}

0 commit comments

Comments
 (0)