From d370604abaa1447815399783c194631cd2f0f1b4 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Mon, 4 Dec 2017 12:53:33 +0100 Subject: [PATCH] Consistency changes --- templates/etc/haproxy/frontend.cfg.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/etc/haproxy/frontend.cfg.j2 b/templates/etc/haproxy/frontend.cfg.j2 index 00d297c6..b65c158c 100644 --- a/templates/etc/haproxy/frontend.cfg.j2 +++ b/templates/etc/haproxy/frontend.cfg.j2 @@ -31,10 +31,10 @@ frontend {{ frontend.name }} no option {{ option }} {% endfor %} - {% if frontend.logformat is defined %} log-format {{ frontend.logformat }} {% endif %} + {% if frontend.no_log | default(false) == true %} no log {% endif %} @@ -60,10 +60,12 @@ frontend {{ frontend.name }} http-response {{ http_response.action }}{% if http_response.param is defined %} {{ http_response.param }}{% endif %}{% if http_response.cond is defined %} {{ http_response.cond }}{% endif %} {% endfor %} + {% for tcp_request in frontend.tcp_request | default([]) %} tcp-request {{ tcp_request.action }}{% if tcp_request.param is defined %} {{ tcp_request.param }}{% endif %}{% if tcp_request.cond is defined %} {{ tcp_request.cond }}{% endif %} {% endfor %} + {% for rspadd in frontend.rspadd | default([]) %} rspadd {{ rspadd.string }}{% if rspadd.cond is defined %} {{ rspadd.cond }}{% endif %}