X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fresolv%2Ftemplates%2Fresolv.conf.erb;h=4f7cd63da7937e41a8ce778a34f8325a274aedc8;hb=1793966c957b29380dd706130182e46f48122b5e;hp=fb0288e5f1ec0a63c5b4adfc88c7f8fb9dc747b9;hpb=710901c5637ad206f4ef4bfec4df8e3d3dfa667d;p=dsa-puppet.git diff --git a/modules/resolv/templates/resolv.conf.erb b/modules/resolv/templates/resolv.conf.erb index fb0288e5..4f7cd63d 100644 --- a/modules/resolv/templates/resolv.conf.erb +++ b/modules/resolv/templates/resolv.conf.erb @@ -8,27 +8,8 @@ nameservers = [] searchpaths = [] resolvconf = '' -case hosterinfo["name"] - when "darmstadt" then - case hostname - when "draghi", "liszt" then - nameservers << "127.0.0.1" - end - nameservers += ["82.195.75.81", "82.195.66.249", "217.198.242.225"] - searchpaths << "debprivate-darmstadt.debian.org" - when "dgi" then - case hostname - when "widor" then - nameserver << "127.0.0.1" - end - nameservers += ["195.49.152.215", "195.49.152.213", "195.49.152.214"] - when "ftcollins" then - case hostname - when "spohr", "samosa" then - nameservers << "127.0.0.1" - end - nameservers += ["192.25.206.33", "192.25.206.57"] - searchpaths << "debprivate-ftcollins.debian.org" +if %w{draghi liszt widor spohr samosa}.include?(hostname) + nameservers << "127.0.0.1" end nameservers += hosterinfo['nameservers'] if hosterinfo['nameservers']