Browse Source

DNS: Reflect pillar change to write replica NS name into config

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 1 year ago
parent
commit
4f6711f16e
1 changed files with 5 additions and 2 deletions
  1. 5 2
      dns-server/named.conf.local

+ 5 - 2
dns-server/named.conf.local

@@ -8,8 +8,11 @@
 
 {% for acl_name, acl_config in salt['pillar.get']('dns-server:acls', {}).items ()|sort %}
 acl {{ acl_name }} {
-  {%- for entry in acl_config['entries'] %}
-	{{ entry }};
+  {%- for entry in acl_config %}
+	// {{ entry }}
+    {%- for IP in acl_config[entry] %}
+	{{ IP }};
+    {%- endfor %}
   {%- endfor %}
 };