diff --git a/templates/etc/haproxy/haproxy-backend.cfg.j2 b/templates/etc/haproxy/haproxy-backend.cfg.j2 index d0c5fa2..2f31583 100644 --- a/templates/etc/haproxy/haproxy-backend.cfg.j2 +++ b/templates/etc/haproxy/haproxy-backend.cfg.j2 @@ -39,6 +39,11 @@ backend {{ name }} option {{ opt }} {% endfor %} {% endif %} + {% if value.no_options is defined %} + {% for no_opt in value.no_options %} + no option {{ no_opt }} + {% endfor %} + {% endif %} {% if value.time_outs is defined %} {% for timeout in value.time_outs %} timeout {{ timeout }} diff --git a/templates/etc/haproxy/haproxy-frontend.cfg.j2 b/templates/etc/haproxy/haproxy-frontend.cfg.j2 index c105d38..d3da48d 100644 --- a/templates/etc/haproxy/haproxy-frontend.cfg.j2 +++ b/templates/etc/haproxy/haproxy-frontend.cfg.j2 @@ -34,6 +34,11 @@ frontend {{ name }} option {{ opt }} {% endfor %} {% endif %} + {% if value.no_options is defined %} + {% for no_opt in value.no_options %} + no option {{ no_opt }} + {% endfor %} + {% endif %} {% if value.acls is defined %} {% for acl in value.acls %} acl {{ acl }} diff --git a/templates/etc/haproxy/haproxy-listen.cfg.j2 b/templates/etc/haproxy/haproxy-listen.cfg.j2 index d3bba42..50f1396 100644 --- a/templates/etc/haproxy/haproxy-listen.cfg.j2 +++ b/templates/etc/haproxy/haproxy-listen.cfg.j2 @@ -46,6 +46,11 @@ listen {{ name }} option {{ opt }} {% endfor %} {% endif %} + {% if value.no_options is defined %} + {% for no_opt in value.no_options %} + no option {{ no_opt }} + {% endfor %} + {% endif %} {% if value.timeouts is defined %} {% for timeout in value.timeouts %} timeout {{ timeout }}