summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-07-22 22:42:09 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-07-22 22:42:09 -0300
commitb7fdd9f7afd94ac17183a5e72d56be0aa71161f8 (patch)
treefa43fc3fd6a79c9ffe34024dc6ef4a8ed51c759b /templates
parent81a4a5ac3b109b806c629bb540d25f93c6dd9ef5 (diff)
downloadpuppet-bind-b7fdd9f7afd94ac17183a5e72d56be0aa71161f8.tar.gz
puppet-bind-b7fdd9f7afd94ac17183a5e72d56be0aa71161f8.tar.bz2
Adding zone parameter to bind::zone so the same domains can be defined in different viewsHEADmaster
Diffstat (limited to 'templates')
-rw-r--r--templates/zone-header.erb2
-rw-r--r--templates/zone-master.erb2
-rw-r--r--templates/zone-slave.erb2
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/zone-header.erb b/templates/zone-header.erb
index 418aef8..a9bb7b3 100644
--- a/templates/zone-header.erb
+++ b/templates/zone-header.erb
@@ -3,7 +3,7 @@ $TTL <%=zone_ttl%>
<% if zone_origin -%>
$ORIGIN <%=zone_origin%>
<% end -%>
-@ IN SOA <%=name%>. <%=zone_contact%>. (
+@ IN SOA <%=zone%>. <%=zone_contact%>. (
<%=zone_serial%> ; serial
<%=zone_refresh%> ; refresh
<%=zone_retry%> ; retry
diff --git a/templates/zone-master.erb b/templates/zone-master.erb
index 2ec3973..f66cd7b 100644
--- a/templates/zone-master.erb
+++ b/templates/zone-master.erb
@@ -1,5 +1,5 @@
# File managed by puppet
-zone "<%=name%>" IN {
+zone "<%=zone%>" IN {
type master;
file "/etc/bind/pri/<%=name%>.conf";
<% if zone_xfers and not zone_xfers.empty? -%>
diff --git a/templates/zone-slave.erb b/templates/zone-slave.erb
index 0ae7e5d..c867428 100644
--- a/templates/zone-slave.erb
+++ b/templates/zone-slave.erb
@@ -1,5 +1,5 @@
# File managed by puppet
-zone <%=name%> IN {
+zone <%=zone%> IN {
type slave;
<% if zone_masters.is_a?(Array) -%>
masters { <%= zone_masters.join('; ') -%>; };