diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-05-05 00:31:37 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-05-05 00:31:37 +0200 |
commit | eb38e6252b3c52a44d0d33679b3bc3178674c7f8 (patch) | |
tree | b7958e38f9893c347af4c04a53f65a103cef3292 /templates/zoneconf.epp | |
parent | Initial commit (diff) | |
download | dns-eb38e6252b3c52a44d0d33679b3bc3178674c7f8.tar.gz dns-eb38e6252b3c52a44d0d33679b3bc3178674c7f8.tar.xz |
Everything
Diffstat (limited to '')
-rw-r--r-- | templates/zoneconf.epp | 20 |
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 %>; + }; + <%- } %> +}; |