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 %}