Do not put our 29.172.in-addr.arpa zone into unbound configs behind fascist firewalls...
[mirror/dsa-puppet.git] / modules / unbound / manifests / init.pp
index 88267d1..bb9e4d8 100644 (file)
@@ -7,9 +7,9 @@
 #   include unbound
 #
 class unbound {
-
        $is_recursor   = getfromhash($site::nodeinfo, 'misc', 'resolver-recursive')
        $client_ranges = hiera('allow_dns_query')
+       $firewall_blocks_dns = hiera('firewall_blocks_dns', false)
        $empty_client_range = empty($client_ranges)
        $ns            = hiera('nameservers')
 
@@ -54,7 +54,7 @@ class unbound {
                notify  => Service['unbound']
        }
        file { '/var/lib/unbound/29.172.in-addr.arpa.key':
-               ensure  => present,
+               ensure  => $firewall_blocks_dns ? { true  => 'absent', default => 'present' },
                replace => false,
                owner   => unbound,
                group   => unbound,