From 25725289a1ccbab494408f826d19b5ef809a2eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20V=C3=B6lker?= Date: Wed, 15 Jun 2022 10:32:59 +0200 Subject: [PATCH] move use_backend below redirect to avoid warnings --- templates/etc/haproxy/haproxy-frontend.cfg.j2 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/etc/haproxy/haproxy-frontend.cfg.j2 b/templates/etc/haproxy/haproxy-frontend.cfg.j2 index 658b1d6..c001e40 100644 --- a/templates/etc/haproxy/haproxy-frontend.cfg.j2 +++ b/templates/etc/haproxy/haproxy-frontend.cfg.j2 @@ -80,11 +80,6 @@ frontend {{ name }} {% if value.rate_limit_sessions is defined %} rate-limit sessions {{ value.rate_limit_sessions }} {% endif %} - {% if value.use_backends is defined %} - {% for use_backend in value.use_backends %} - use_backend {{ use_backend }} - {% endfor %} - {% endif %} {% if value.redirects is defined %} {% for redirect in value.redirects %} redirect {{ redirect }} @@ -108,6 +103,11 @@ frontend {{ name }} timeout {{ timeout }} {% endfor %} {% endif %} + {% if value.use_backends is defined %} + {% for use_backend in value.use_backends %} + use_backend {{ use_backend }} + {% endfor %} + {% endif %} {% if value.default_backend is defined %} default_backend {{ value.default_backend }} {% endif %}