diff options
-rw-r--r-- | templates/default-record.erb | 4 | ||||
-rw-r--r-- | templates/generate.erb | 2 | ||||
-rw-r--r-- | templates/mx-record.erb | 4 | ||||
-rw-r--r-- | templates/view.erb | 8 | ||||
-rw-r--r-- | templates/zone-header.erb | 18 | ||||
-rw-r--r-- | templates/zone-master.erb | 10 | ||||
-rw-r--r-- | templates/zone-slave.erb | 8 |
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; }; }; |