]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/resolv/templates/resolv.conf.erb
I wonder if this is better
[dsa-puppet.git] / modules / resolv / templates / resolv.conf.erb
index 9bc11ba9664e90a63b189e5d328aad840e14ce15..0ebef6c5b81e678a826f09b9332339726219d12e 100644 (file)
@@ -21,7 +21,8 @@ searchpaths << "debian.org"
 resolvconf  = ''
 resolvconf += "search " + searchpaths.join(" ") + "\n"
 
-if runs_local_resolver
+unbound = lookupvar('unbound')
+if unbound and unbound == "true"
   resolvconf += "nameserver 127.0.0.1\n"
 else
   if nameservers.empty?