Procházet zdrojové kódy

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

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm před 1 rokem
rodič
revize
4f6711f16e
1 změnil soubory, kde provedl 5 přidání a 2 odebrání
  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 %}
 };