summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/sources.list.erb26
1 files changed, 18 insertions, 8 deletions
diff --git a/templates/sources.list.erb b/templates/sources.list.erb
index c3453d1..989d98d 100644
--- a/templates/sources.list.erb
+++ b/templates/sources.list.erb
@@ -1,11 +1,21 @@
# This file is brought to you by puppet
-# basic <%= codename %>
-deb http://ftp.debian.org/debian/ <%= codename %> main contrib non-free
-# security suppport
-<% if (codename == "sid" || codename == "unstable") -%>
-# There is no security mirror for <%= codename %>
-<% else -%>
-deb http://security.debian.org/ <%= codename %>/updates main contrib non-free
-<% end -%>
+### Debian current: <%= codename %>
+
+# basic
+deb <%= http://ftp.debian.org/debian/ %> <%= codename %> <%= repos %>
+
+# security
+<% if (release == "unstable" || release == "experimental") %>
+# There is no security support for <%= release %>
+<% else %>
+deb http://security.debian.org/ <%= codename %>/updates <%= repos %>
+<% end %>
+
+# backports
+<% if (release == "testing" || release == "unstable" || release == "experimental") %>
+# There is no backports archive for <%= release %>
+<% else %>
+deb http://backports.debian.org/debian-backports/ <%= codename %>-backports <%= repos %>
+<% end %>