]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/unbound/templates/unbound.conf.erb
Now it's ruby
[dsa-puppet.git] / modules / unbound / templates / unbound.conf.erb
index fe710ea916e09e8774cab7e85c3601d63257ac87..d6b3436e16251e5bacf2601fbd942e9c9630e39c 100644 (file)
@@ -6,7 +6,7 @@
 server:
        verbosity: 1
 
-<% if @is_recursor && @client_ranges -%>
+<% if (@is_recursor and (not @client_ranges.empty?)) -%>
        interface: 0.0.0.0
        interface: ::0
 
@@ -44,7 +44,8 @@ server:
        auto-trust-anchor-file: "/var/lib/unbound/root.key"
        auto-trust-anchor-file: "/var/lib/unbound/debian.org.key"
 
-<% if (not @is_recursor) and @ns -%>
+# recursive: <%= @is_recursor ? "y" : "n" %>
+<% if not @is_recursor -%>
 forward-zone:
        name: "."
 <% @ns.to_a.flatten.each do |nms| -%>