## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
##
-<% if nodeinfo.has_key?('squeeze') and nodeinfo['squeeze'] %>
-deb https://buildd.debian.org/apt/ squeeze main
-deb https://buildd.debian.org/apt/ lenny main
-<% else %>
-deb https://buildd.debian.org/apt/ lenny main
-<% end %>
+<%
+ builddsuites = %w{squeeze wheezy}
+ testingunstable = 'wheezy'
+ if builddsuites.include?(lsbdistcodename)
+ suite = lsbdistcodename
+ else
+ suite = testingunstable
+ end
+%>
+
+# The buildd default repository.
+deb https://buildd.debian.org/apt/ <%= suite %> main
<% if %w{alkman porpora zandonai}.include?(hostname) -%>
-deb https://buildd.debian.org/apt/ lenny-proposed main
+# Include the current test version too.
+deb https://buildd.debian.org/apt/ <%= suite %>-proposed main
<% elsif %w{krenek}.include?(hostname) -%>
-deb https://buildd.debian.org/apt/ lenny-experimental main
+deb https://buildd.debian.org/apt/ <%= suite %>-experimental main
<% end %>