summaryrefslogtreecommitdiff
path: root/roles/network/bind/templates/slave-zones.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/network/bind/templates/slave-zones.j2')
-rw-r--r--roles/network/bind/templates/slave-zones.j222
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/network/bind/templates/slave-zones.j2 b/roles/network/bind/templates/slave-zones.j2
new file mode 100644
index 00000000..7cf3a9b2
--- /dev/null
+++ b/roles/network/bind/templates/slave-zones.j2
@@ -0,0 +1,22 @@
+// Masters
+
+{% for name,config in bind_slave_zones.items() %}
+masters {{ name }} {
+{% for master in config.masters %}
+ {{ master }};
+{% endfor %}
+};
+
+{% endfor %}
+
+// Zones
+{% for name,config in bind_slave_zones.items() %}
+{% for zone in config.zones %}
+
+zone "{{ zone }}" {
+ type slave;
+ file "/var/cache/bind/db.{{ zone }}.sec";
+ masters { {{ name }}; };
+};
+{% endfor %}
+{% endfor %}