2 ### THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ### USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
11 if %w{draghi liszt}.include?(hostname)
12 nameservers << "127.0.0.1"
15 nameservers += scope.lookupvar('ns')
16 options += scope.lookupvar('site::nodeinfo')['hoster']['resolvoptions'] if scope.lookupvar('site::nodeinfo')['hoster']['resolvoptions']
18 searchpaths += scope.lookupvar('sp')
19 searchpaths << "debian.org"
22 resolvconf += "search " + searchpaths.to_a.flatten.join(" ") + "\n"
24 if has_variable?('unbound') and unbound and unbound == "true"
25 resolvconf += "nameserver 127.0.0.1\n"
28 #raise Puppet::ParseError, "Something has gone wrong writing resolv.conf. No nameservers to use!"
29 scope.function_warning(["Something has gone wrong writing resolv.conf. No nameservers to use - using google's!"])
30 nameservers << '8.8.8.8'
31 nameservers << '8.8.4.4'
34 nameservers.to_a.flatten.each do |ns|
35 resolvconf += "nameserver " + ns + "\n"
40 resolvconf += "options " + opt + "\n"