From 2b42f3b478e69653ad73826f5da7cc1e4d99f002 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 13 Mar 2024 13:19:21 +0100 Subject: [PATCH] updated haproxy state --- states/haproxy/templates/haproxy.cfg.j2 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/states/haproxy/templates/haproxy.cfg.j2 b/states/haproxy/templates/haproxy.cfg.j2 index bfcc93b..b1b4c1a 100644 --- a/states/haproxy/templates/haproxy.cfg.j2 +++ b/states/haproxy/templates/haproxy.cfg.j2 @@ -280,6 +280,11 @@ backend {{ name }} from {{ haproxy.config.namespace }} http-check {{ step }} {%- endfor %} {%- endif %} + +{%- if values.usecache|default(True) %} + {{ cache() }} +{%- endif %} + {%- if values.overrides|default([]) %} {%- for override in values.overrides %} {{ override }} @@ -293,10 +298,6 @@ backend {{ name }} from {{ haproxy.config.namespace }} {{ compression() }} {%- endif %} -{%- if values.usecache|default(True) %} - {{ cache() }} -{%- endif %} - {%- if values.internal|default(False) %} {{ internal() }} {%- endif %}