lookup_options:
# with merge: unique entries in other hiera sources add to the array
- searchpaths:
+ resolv_conf::searchpaths:
merge: unique
apt::sources::debian::location:
merge: unique
nameservers: []
-searchpaths: ['debian.org']
-resolvoptions: []
+resolv_conf::searchpaths: ['debian.org']
+resolv_conf::resolvoptions: []
allow_dns_query: []
role_config__mirrors:
mirror_basedir_prefix: '/srv/mirrors/'
---
-searchpaths:
+resolv_conf::searchpaths:
- debprivate-oneandone.debian.org
- 2001:6b0:e:2018::252
- 130.239.1.90
- 130.239.4.100
-searchpaths:
+resolv_conf::searchpaths:
- priv.accumu.debian.org
- debprivate-accumu.debian.org
---
-searchpaths:
+resolv_conf::searchpaths:
- debprivate-brainfood.debian.org
- 128.30.2.24
- 128.30.2.25
- 128.30.0.125
-searchpaths:
+resolv_conf::searchpaths:
- priv.csail.debian.org
# currently only used by VMs with systemd-timesync
local-timeservers:
nameservers:
- 62.217.126.164
- 194.177.210.210
-searchpaths:
+resolv_conf::searchpaths:
- debprivate-grnet.debian.org
# currently only used by VMs with systemd-timesync
local-timeservers:
allow_dns_query:
- 82.195.75.64/26
- 172.29.180.0/24
-searchpaths:
+resolv_conf::searchpaths:
- manda.debian.org
- priv.manda.debian.org
# currently only used by VMs with systemd-timesync
nameservers:
- 193.62.202.28
- 193.62.202.29
-searchpaths:
+resolv_conf::searchpaths:
- debprivate-sanger.debian.org
allow_dns_query:
- 193.62.202.24/29
---
-searchpaths:
+resolv_conf::searchpaths:
- priv.sil.debian.org
# ubc-enc2bl10
- 209.87.16.10
- 2607:f8f0:614:1::1274:10
-searchpaths:
+resolv_conf::searchpaths:
- debprivate-ubc.debian.org
- priv.ubc.debian.org
allow_dns_query:
$nameservers = $facts['unbound'] ? {
true => ['127.0.0.1'],
- default => hiera('nameservers'),
+ default => lookup('nameservers'),
}
- $searchpaths = hiera('searchpaths')
- $resolvoptions = hiera('resolvoptions')
+ $searchpaths = lookup('resolv_conf::searchpaths')
+ $resolvoptions = lookup('resolv_conf::resolvoptions')
file { '/etc/resolv.conf':
content => template('resolv/resolv.conf.erb');
%>
<% if @searchpaths.size() > 0 %>
-search <%= @searchpaths.join(" ") %> debian.org
+search <%= @searchpaths.join(" ") %>
<% end -%>
<%= nameservers.map{ |ns| "nameserver #{ns}"}.join("\n") %>