From eb38e6252b3c52a44d0d33679b3bc3178674c7f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 5 May 2023 00:31:37 +0200 Subject: Everything --- templates/zoneconf.epp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 templates/zoneconf.epp (limited to 'templates/zoneconf.epp') 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 %>; + }; + <%- } %> +}; -- cgit v1.2.3