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
12 if %w{draghi liszt}.include?(hostname)
13 nameservers << "127.0.0.1"
16 nameservers += scope.lookupvar('ns')
17 searchpaths += scope.lookupvar('sp')
18 options += scope.lookupvar('opts')
20 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"
39 options.to_a.flatten.each do |opt|
40 resolvconf += "options " + opt + "\n"