Add templates for named.conf and for view fragments

This commit is contained in:
Nate Riffe
2012-09-03 21:52:38 -05:00
parent 641d416c97
commit 594d850cb2
4 changed files with 49 additions and 7 deletions
+3
View File
@@ -0,0 +1,3 @@
# This file is managed by puppet - changes will be lost
include "<%= confdir %>/acls.conf";
include "<%= confdir %>/views.conf";
+22
View File
@@ -0,0 +1,22 @@
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 -%>
}