From 8e05da12670ae09bb260fa4f899a3c8ae8c428a4 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 1 Sep 2024 17:21:29 +0200 Subject: [PATCH] updated haproxy state --- states/haproxy/templates/haproxy.cfg.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/states/haproxy/templates/haproxy.cfg.j2 b/states/haproxy/templates/haproxy.cfg.j2 index f4b193c..c88bba4 100644 --- a/states/haproxy/templates/haproxy.cfg.j2 +++ b/states/haproxy/templates/haproxy.cfg.j2 @@ -341,7 +341,7 @@ backend {{ name }} from {{ haproxy.config.namespace }} {{ compression() }} {%- endif %} - default-server weight 100 inter 1s fall 5 maxconn 100 + default-server maxconn 100 weight 100 inter 1s fall 5 {%- if values.internal|default(False) %} {{ internal() }} @@ -367,7 +367,7 @@ listen {{ name }} from {{ haproxy.config.namespace }} timeout server 1s option spop-check {%- endif %} - default-server weight 100 inter 1s fall 5 maxconn 100 + default-server maxconn 100 weight 100 inter 1s fall 5 {{- tcpendpoints(servers=values.servers|default([]), check=values.check|default(haproxy.config.check)) }} {% endfor %}