From abd0703e52b3e3d119dd3981ffe022a5253e6d3f Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Tue, 3 Mar 2026 13:20:05 +0100 Subject: [PATCH] feat(config): support httpresponses in backend ... and also switch httprequests to the shorter macro based rendering variant whilst at it. Signed-off-by: Georg Pfuetzenreuter --- haproxy/templates/haproxy.jinja | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/haproxy/templates/haproxy.jinja b/haproxy/templates/haproxy.jinja index 9ad1544..f58d153 100644 --- a/haproxy/templates/haproxy.jinja +++ b/haproxy/templates/haproxy.jinja @@ -544,13 +544,10 @@ backend {{ backend.get('name', backend_name) }} {%- endif %} {%- endif %} {%- if 'httprequests' in backend %} - {%- if backend.httprequests is string %} - http-request {{ backend.httprequests }} - {%- else %} - {%- for httprequest in backend.httprequests %} - http-request {{ httprequest }} - {%- endfor %} - {%- endif %} + {{- render_list_of_dictionaries('http-request', backend.httprequests) }} + {%- endif %} + {%- if 'httpresponses' in backend %} + {{- render_list_of_dictionaries('http-response', backend.httpresponses) }} {%- endif %} {%- if 'httpchecks' in backend %} {%- if backend.httpchecks is string %}