]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/resolv/templates/resolv.conf.erb
stderr is dev/null. maybe this will do?
[dsa-puppet.git] / modules / resolv / templates / resolv.conf.erb
index f554d9412ffd129312bddf0cb3140578dc11b8fc..e3956756fc1b625728d465b8e1753289760cd7da 100644 (file)
@@ -25,7 +25,10 @@ if defined?(unbound) and unbound and unbound == "true"
   resolvconf += "nameserver 127.0.0.1\n"
 else
   if nameservers.empty?
-    raise Puppet::ParseError, "Something has gone wrong writing resolv.conf.  No nameservers to use!"
+    #raise Puppet::ParseError, "Something has gone wrong writing resolv.conf.  No nameservers to use!"
+    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.each do |ns|