Try to make dsa.conf.erb a useful template
[mirror/dsa-puppet.git] / modules / ganeti2 / templates / instance-debootstrap / variants / dsa.conf.erb
index 1014164..965cc8e 100644 (file)
@@ -1,3 +1,8 @@
-MIRROR="http://mirror-ubc.debian.org/debian"
+<%=
+case scope.lookupvar('::cluster')
+        when "ganeti2.debian.org" then 'MIRROR="http://mirror-ubc.debian.org/debian"'
+        when "ganeti-osuosl.debian.org" then 'MIRROR="http://debian.osuosl.org/debian"'
+        else 'MIRROR="http://http.debian.net/debian"'
+%>
 ARCH="amd64"
 SUITE="squeeze"