Do not put our 29.172.in-addr.arpa zone into unbound configs behind fascist firewalls, 2
authorPeter Palfrader <peter@palfrader.org>
Tue, 9 Oct 2018 18:02:34 +0000 (20:02 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 9 Oct 2018 18:02:34 +0000 (20:02 +0200)
modules/unbound/manifests/init.pp
modules/unbound/templates/unbound.conf.erb

index bb9e4d8..79f172a 100644 (file)
@@ -7,6 +7,8 @@
 #   include unbound
 #
 class unbound {
+       include stdlib
+
        $is_recursor   = getfromhash($site::nodeinfo, 'misc', 'resolver-recursive')
        $client_ranges = hiera('allow_dns_query')
        $firewall_blocks_dns = hiera('firewall_blocks_dns', false)
index 7ffc35f..e33b519 100644 (file)
@@ -49,7 +49,7 @@ server:
        prefetch-key: yes
 
 
-<% if not hiera('firewall_blocks_dns', false) %>
+<% if not @firewall_blocks_dns %>
 local-zone: "29.172.in-addr.arpa" nodefault
 forward-zone:
        name: "29.172.in-addr.arpa"