order matters
[mirror/dsa-puppet.git] / modules / resolv / templates / resolv.conf.erb
index 34ea6af..147dfdf 100644 (file)
@@ -15,8 +15,8 @@ end
 nameservers += scope.lookupvar('ns')
 options += scope.lookupvar('site::nodeinfo')['hoster']['resolvoptions'] if scope.lookupvar('site::nodeinfo')['hoster']['resolvoptions']
 
-searchpaths << "debian.org"
 searchpaths += scope.lookupvar('sp')
+searchpaths << "debian.org"
 
 resolvconf  = ''
 resolvconf += "search " + searchpaths.to_a.flatten.join(" ") + "\n"