puppet-bind/templates/view.erb
2012-09-03 22:09:29 -05:00

23 lines
480 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' %>;
<%- zones.each do |zone| -%>
include "<%= confdir %>/zones/${zone}.conf";
<%- end -%>
};