Add templates for named.conf and for view fragments
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# This file is managed by puppet - changes will be lost
|
||||
include "<%= confdir %>/acls.conf";
|
||||
include "<%= confdir %>/views.conf";
|
||||
@@ -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 -%>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user