summaryrefslogtreecommitdiff
path: root/templates/zoneconf.epp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-05-05 00:31:37 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-05-05 00:31:37 +0200
commiteb38e6252b3c52a44d0d33679b3bc3178674c7f8 (patch)
treeb7958e38f9893c347af4c04a53f65a103cef3292 /templates/zoneconf.epp
parentInitial commit (diff)
downloaddns-eb38e6252b3c52a44d0d33679b3bc3178674c7f8.tar.gz
dns-eb38e6252b3c52a44d0d33679b3bc3178674c7f8.tar.xz
Everything
Diffstat (limited to '')
-rw-r--r--templates/zoneconf.epp20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/zoneconf.epp b/templates/zoneconf.epp
new file mode 100644
index 0000000..cb702be
--- /dev/null
+++ b/templates/zoneconf.epp
@@ -0,0 +1,20 @@
+<%- | String $zone,
+ String $type,
+ String $update_policy,
+ | -%>
+<%# one zone entry for the bind9 configuration file %>
+zone "<%= $zone %>" {
+ type <%= $type %>;
+ file "zones/<%= $zone %>.db";
+
+ <%- if $type == 'master' or $type == 'slave' { %>
+ journal "journal/<%= $zone %>.jnl";
+ <%- } %>
+
+
+ <%- if $update_policy { %>
+ update-policy {
+ <%= $update_policy %>;
+ };
+ <%- } %>
+};