summaryrefslogtreecommitdiff
path: root/templates/zone-master.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/zone-master.erb')
-rw-r--r--templates/zone-master.erb12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/zone-master.erb b/templates/zone-master.erb
new file mode 100644
index 0000000..d9e88fd
--- /dev/null
+++ b/templates/zone-master.erb
@@ -0,0 +1,12 @@
+# File managed by puppet
+zone "<%=name%>" IN {
+ type master;
+ file "/etc/bind/pri/<%=name%>.conf";
+<% if zone_xfers and not zone_xfers.empty? -%>
+ allow-transfer { <%= zone_xfers.collect! {|i| "#{i}" }.join('; ') -%> };
+<% else -%>
+ allow-transfer { none; };
+<% end -%>
+ allow-query { any; };
+ notify yes;
+};