## ### THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. ### USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git ### <% searchpaths = [] searchpaths += @sp searchpaths << "debian.org" -%> search <%= searchpaths.to_a.flatten.join(" ") %> <% nameservers = [] if %w{draghi}.include?(hostname) nameservers << "127.0.0.1" end nameservers += @ns if @unbound && @unbound == "true" nameservers = ['127.0.0.1'] end if nameservers.empty? #raise Puppet::ParseError, "Something has gone wrong writing resolv.conf. No nameservers to use!" scope.function_warning(["Something has gone wrong writing resolv.conf. No nameservers to use - using google's!"]) nameservers << '8.8.8.8' nameservers << '8.8.4.4' end nameservers.to_a.flatten.each do |nms| -%> nameserver <%= nms %> <% end -%> <% options = [] options += @opts -%> <% options.to_a.flatten.each do |opt| -%> options <%= opt %> <% end -%>