- 195.20.224.99
- 195.20.224.234
- 87.106.64.251
+searchpaths:
+ - debprivate-oneandone.debian.org
- 130.239.18.145
- 130.239.1.90
- 130.239.4.100
+searchpaths:
+ - debprivate-accumu.debian.org
--- /dev/null
+---
+searchpaths:
+ - debprivate-brainfood.debian.org
- 128.30.2.24
- 128.30.2.25
- 128.30.0.125
+searchpaths:
+ - debprivate-csail.debian.org
nameservers:
- 192.25.206.33
- 192.25.206.57
+searchpaths:
+ - debprivate-ftcollins.debian.org
nameservers:
- 194.177.210.10
- 194.177.210.210
+searchpaths:
+ - debprivate-grnet.debian.org
nameservers:
- 82.195.66.249
- 217.198.242.225
+searchpaths:
+ - debprivate-darmstadt.debian.org
nameservers:
- 193.62.202.28
- 193.62.202.29
+searchpaths:
+ - debprivate-sanger.debian.org
nameservers:
- 86.59.118.147
- 86.59.118.148
+searchpaths:
+ - debprivate-sil.debian.org
- 2607:f8f0:610:4000:218:feff:fe76:2ed0
- 206.12.19.21
- 2607:f8f0:610:4000:21c:c4ff:fee5:e890
+searchpaths:
+ - debprivate-ubc.debian.org
class resolv {
$ns = hiera('nameservers')
+ $sp = hiera('searchpaths')
file { '/etc/resolv.conf':
content => template('resolv/resolv.conf.erb');
end
nameservers += scope.lookupvar('ns')
-searchpaths += scope.lookupvar('site::nodeinfo')['hoster']['searchpaths'] if scope.lookupvar('site::nodeinfo')['hoster']['searchpaths']
options += scope.lookupvar('site::nodeinfo')['hoster']['resolvoptions'] if scope.lookupvar('site::nodeinfo')['hoster']['resolvoptions']
searchpaths << "debian.org"
+searchpaths += scope.lookupvar('sp')
resolvconf = ''
-resolvconf += "search " + searchpaths.join(" ") + "\n"
+resolvconf += "search " + searchpaths.to_a.flatten.join(" ") + "\n"
if has_variable?('unbound') and unbound and unbound == "true"
resolvconf += "nameserver 127.0.0.1\n"