From 62ecc7edffb47477354fac3152cf95dddc044a5f Mon Sep 17 00:00:00 2001 From: Adam Kowalik Date: Thu, 8 Aug 2024 17:31:14 +0200 Subject: [PATCH] Adding monitor-fail option. --- templates/etc/haproxy/haproxy-frontend.cfg.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/etc/haproxy/haproxy-frontend.cfg.j2 b/templates/etc/haproxy/haproxy-frontend.cfg.j2 index 7d900cf..2b5206b 100644 --- a/templates/etc/haproxy/haproxy-frontend.cfg.j2 +++ b/templates/etc/haproxy/haproxy-frontend.cfg.j2 @@ -44,6 +44,9 @@ frontend {{ name }} acl {{ acl }} {% endfor %} {% endif %} + {% if value.monitor is defined %} + monitor fail {{ value.monitor_fail }} + {% endif %} {% if value.monitor_uri is defined %} monitor-uri {{ value.monitor_uri }} {% endif %}