瀏覽代碼

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

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 1 年之前
父節點
當前提交
4f6711f16e
共有 1 個文件被更改,包括 5 次插入2 次删除
  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 %}
 };