puppet-bind/templates/view.erb
Nate Riffe 05097dcd05 Access class variables the new way
Recent puppets demand that puppet class variables be qualified as instance
members when accessed from within a template.
2013-06-30 09:04:37 -05:00

26 lines
609 B
Plaintext

view "<%= @name %>" {
<%- if not @match_clients.empty? -%>
match-clients {
<%- @match_clients.each do |match_client| -%>
<%= match_client %>;
<%- end -%>
};
<%- end -%>
<%- if not @match_destinations.empty? -%>
match-destinations {
<%- @match_destinations.each do |match_destination| -%>
<%= match_destination %>;
<%- end -%>
};
<%- end -%>
recursion <%= @recursion ? 'yes' : 'no' %>;
<%- if scope.lookupvar('osfamily') == 'Debian' -%>
include "<%= @confdir %>/named.conf.default-zones";
<%- end -%>
<%- @zones.each do |zone| -%>
include "<%= @confdir %>/zones/<%= @zone %>.conf";
<%- end -%>
};