Signed-off-by: Stephen Gran <steve@lobefin.net>
case $brokenhosts {
"true": { include hosts }
}
+ case $hoster {
+ "ubcece": { include resolv }
+ }
}
--- /dev/null
+class resolv {
+ file { "/etc/resolv.conf/":
+ content => template("resolv/resolv.conf.erb");
+ }
+}
--- /dev/null
+<%= resolvconf = case hoster
+ when "ubcece" then "search debprivate-ubc.debian.org debian.org
+nameserver 206.12.19.5
+nameserver 137.82.1.1
+nameserver 142.103.1.1
+"
+end
+if resolvconf = ""
+ raise Puppet::ParseError, "resolv.conf is empty"
+end
+resolvconf
+%>