summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-24 12:23:07 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-24 12:23:07 -0300
commit815ac34985e362952309e39350928aa28115ce3d (patch)
treea398ec1ab7fdc885696a94b70bc283baa5992d99
parent846059203fcb843f18c06db7901ff6a2dd28f67d (diff)
downloadpuppet-bind-815ac34985e362952309e39350928aa28115ce3d.tar.gz
puppet-bind-815ac34985e362952309e39350928aa28115ce3d.tar.bz2
Fix deprecation warnings
-rw-r--r--templates/default-record.erb4
-rw-r--r--templates/generate.erb2
-rw-r--r--templates/mx-record.erb4
-rw-r--r--templates/view.erb8
-rw-r--r--templates/zone-header.erb18
-rw-r--r--templates/zone-master.erb10
-rw-r--r--templates/zone-slave.erb8
7 files changed, 27 insertions, 27 deletions
diff --git a/templates/default-record.erb b/templates/default-record.erb
index 16b839f..33d8f3d 100644
--- a/templates/default-record.erb
+++ b/templates/default-record.erb
@@ -1,5 +1,5 @@
<% if ttl -%>
-<%=_owner%> <%=ttl%> <%=record_class%> <%=record_type%> <%=host%>
+<%=@_owner%> <%=@ttl%> <%=@record_class%> <%=@record_type%> <%=@host%>
<% else -%>
-<%=_owner%> <%=record_class%> <%=record_type%> <%=host%>
+<%=@_owner%> <%=@record_class%> <%=@record_type%> <%=@host%>
<% end -%>
diff --git a/templates/generate.erb b/templates/generate.erb
index 0c15823..263ece7 100644
--- a/templates/generate.erb
+++ b/templates/generate.erb
@@ -1 +1 @@
-$GENERATE <%=range%> <%=lhs%> <%=ttl%> <%=record_class%> <%=record_type%> <%=rhs%> ; <%=name%>
+$GENERATE <%=@range%> <%=@lhs%> <%=@ttl%> <%=@record_class%> <%=@record_type%> <%=@rhs%> ; <%=@name%>
diff --git a/templates/mx-record.erb b/templates/mx-record.erb
index a8ec89d..23b3a81 100644
--- a/templates/mx-record.erb
+++ b/templates/mx-record.erb
@@ -1,5 +1,5 @@
<% if ttl -%>
-<%=owner%> <%=ttl%> IN MX <%=priority%> <%=host%>
+<%=@owner%> <%=@ttl%> IN MX <%=@priority%> <%=@host%>
<% else -%>
-<%=owner%> IN MX <%=priority%> <%=host%>
+<%=@owner%> IN MX <%=@priority%> <%=@host%>
<% end -%>
diff --git a/templates/view.erb b/templates/view.erb
index 6b3e776..e44423b 100644
--- a/templates/view.erb
+++ b/templates/view.erb
@@ -1,5 +1,5 @@
/* File managed by puppet */
-view "<%= name %>" {
- match-clients { <%= match_clients %>; };
- recursion <%= recursion %>;
- <% if allow_query != false %>allow-query { <%= allow_query %>; }; <% end %>
+view "<%= @name %>" {
+ match-clients { <%= @match_clients %>; };
+ recursion <%= @recursion %>;
+ <% if @allow_query != false %>allow-query { <%= @allow_query %>; }; <% end %>
diff --git a/templates/zone-header.erb b/templates/zone-header.erb
index a9bb7b3..d595296 100644
--- a/templates/zone-header.erb
+++ b/templates/zone-header.erb
@@ -1,13 +1,13 @@
; File managed by puppet
-$TTL <%=zone_ttl%>
+$TTL <%=@zone_ttl%>
<% if zone_origin -%>
-$ORIGIN <%=zone_origin%>
+$ORIGIN <%=@zone_origin%>
<% end -%>
-@ IN SOA <%=zone%>. <%=zone_contact%>. (
- <%=zone_serial%> ; serial
- <%=zone_refresh%> ; refresh
- <%=zone_retry%> ; retry
- <%=zone_expiracy%>; expiracy
- <%=zone_ttl%> ) ; TTL
- IN NS <%=zone_ns%>.
+@ IN SOA <%=@zone%>. <%=@zone_contact%>. (
+ <%=@zone_serial%> ; serial
+ <%=@zone_refresh%> ; refresh
+ <%=@zone_retry%> ; retry
+ <%=@zone_expiracy%>; expiracy
+ <%=@zone_ttl%> ) ; TTL
+ IN NS <%=@zone_ns%>.
diff --git a/templates/zone-master.erb b/templates/zone-master.erb
index f66cd7b..eaabf8a 100644
--- a/templates/zone-master.erb
+++ b/templates/zone-master.erb
@@ -1,12 +1,12 @@
# File managed by puppet
-zone "<%=zone%>" IN {
+zone "<%=@zone%>" IN {
type master;
file "/etc/bind/pri/<%=name%>.conf";
-<% if zone_xfers and not zone_xfers.empty? -%>
- <% if zone_xfers.is_a?(Array) -%>
- allow-transfer { <%= zone_xfers.join('; ') -%>; };
+<% if @zone_xfers and not @zone_xfers.empty? -%>
+ <% if @zone_xfers.is_a?(Array) -%>
+ allow-transfer { <%= @zone_xfers.join('; ') -%>; };
<% else -%>
- allow-transfer { <%= zone_xfers %>; };
+ allow-transfer { <%= @zone_xfers %>; };
<% end -%>
<% else -%>
allow-transfer { none; };
diff --git a/templates/zone-slave.erb b/templates/zone-slave.erb
index c867428..d98a22f 100644
--- a/templates/zone-slave.erb
+++ b/templates/zone-slave.erb
@@ -1,10 +1,10 @@
# File managed by puppet
-zone <%=zone%> IN {
+zone <%=@zone%> IN {
type slave;
- <% if zone_masters.is_a?(Array) -%>
- masters { <%= zone_masters.join('; ') -%>; };
+ <% if @zone_masters.is_a?(Array) -%>
+ masters { <%= @zone_masters.join('; ') -%>; };
<% else -%>
- masters { <%= zone_masters %>; };
+ masters { <%= @zone_masters %>; };
<% end -%>
allow-query { any; };
};