From: Stephen Gran Date: Mon, 16 Apr 2012 10:26:10 +0000 (+0100) Subject: order matters X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=17bbd45fbed32e6cfe598b6586e0cc1f8e58b2b9 order matters Signed-off-by: Stephen Gran --- diff --git a/modules/resolv/templates/resolv.conf.erb b/modules/resolv/templates/resolv.conf.erb index 34ea6af0..147dfdf0 100644 --- a/modules/resolv/templates/resolv.conf.erb +++ b/modules/resolv/templates/resolv.conf.erb @@ -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"