summaryrefslogtreecommitdiff
path: root/templates/zoneconf.epp
blob: 2d85b5ca61f8b17b13d88fd17d3ca5387675ec11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<%- | String $zone,
      String $type,
      Optional[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 %>;
  };
  <%- } -%>
};