Also do not volatile and backports on squeeze machines
authorPeter Palfrader <peter@palfrader.org>
Tue, 22 Sep 2009 23:18:40 +0000 (01:18 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 22 Sep 2009 23:18:40 +0000 (01:18 +0200)
modules/debian-org/templates/etc/apt/sources.list.d/backports.org.list.erb
modules/debian-org/templates/etc/apt/sources.list.d/volatile.list.erb

index 11663c1..6a52481 100644 (file)
@@ -3,5 +3,8 @@
 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
 ##
 
+<% if nodeinfo.has_key?('squeeze') and not nodeinfo['squeeze'].empty? %>
+<% else %>
 #deb     http://debian.sil.at/backports.org/        lenny-backports main
 deb    http://mirror.netcologne.de/debian-backports/   lenny-backports main 
+<% end %>
index fab100b..16c450c 100644 (file)
@@ -3,4 +3,7 @@
 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
 ##
 
+<% if nodeinfo.has_key?('squeeze') and not nodeinfo['squeeze'].empty? %>
+<% else %>
 deb     http://volatile.debian.org/debian-volatile lenny/volatile   main
+<% end %>