projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
diff --git
a/modules/unbound/manifests/init.pp
b/modules/unbound/manifests/init.pp
index
88267d1
..
bb9e4d8
100644
(file)
--- a/
modules/unbound/manifests/init.pp
+++ b/
modules/unbound/manifests/init.pp
@@
-7,9
+7,9
@@
# include unbound
#
class unbound {
# include unbound
#
class unbound {
-
$is_recursor = getfromhash($site::nodeinfo, 'misc', 'resolver-recursive')
$client_ranges = hiera('allow_dns_query')
$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')
$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':
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,
replace => false,
owner => unbound,
group => unbound,