From 75b95a41074fd5b53e13035006b9d3f1d23ada3b Mon Sep 17 00:00:00 2001
From: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Date: Tue, 9 Jul 2019 19:51:04 +0200
Subject: [PATCH] adds acl to defaults

---
 templates/defaults.cfg | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/templates/defaults.cfg b/templates/defaults.cfg
index e01eea6..66a4933 100644
--- a/templates/defaults.cfg
+++ b/templates/defaults.cfg
@@ -64,6 +64,12 @@ defaults
     {{ macros.compression(haproxy_defaults_final.compression) }}
 {% endif -%}
 
+{% if haproxy_defaults_final.acl is defined %}
+{% for acl in haproxy_defaults_final.acl %}
+    acl {{ acl.name }} {{ acl.condition }}
+{% endfor -%}
+{% endif -%}
+
 {% if haproxy_defaults_final.http_check is defined %}
 {% if haproxy_defaults_final.http_check.disable_on_404 is defined and haproxy_defaults_final.http_check.disable_on_404 == true %}
     http-check disable-on-404
-- 
GitLab