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 += nodeinfo['hoster']['nameservers'] if nodeinfo['hoster']['nameservers']
16 searchpaths += nodeinfo['hoster']['searchpaths'] if nodeinfo['hoster']['searchpaths']
17 options += nodeinfo['hoster']['resolvoptions'] if nodeinfo['hoster']['resolvoptions']
19 searchpaths << "debian.org"
22 resolvconf += "search " + searchpaths.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.each do |ns|
35 resolvconf += "nameserver " + ns + "\n"
40 resolvconf += "options " + opt + "\n"