aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@puppet.koumbit.net>2008-01-25 16:50:17 -0500
committerroot <root@puppet.koumbit.net>2008-01-25 16:50:17 -0500
commitd203a72afc814bc8aa8a8e30b973d46e0cce8862 (patch)
tree19b19824af81cdcfcb8865b93d5817fa82d7e7cc
parent383137e0fb064d96cb0de5e52698006b025a006d (diff)
downloadpuppet-apt-d203a72afc814bc8aa8a8e30b973d46e0cce8862.tar.gz
puppet-apt-d203a72afc814bc8aa8a8e30b973d46e0cce8862.tar.bz2
split out backports and unstable sources.list
-rw-r--r--templates/sources.list+backports.erb22
-rw-r--r--templates/sources.list+unstable.erb15
-rw-r--r--templates/sources.list.erb7
3 files changed, 37 insertions, 7 deletions
diff --git a/templates/sources.list+backports.erb b/templates/sources.list+backports.erb
new file mode 100644
index 0000000..7b99434
--- /dev/null
+++ b/templates/sources.list+backports.erb
@@ -0,0 +1,22 @@
+# This file is brought to you by puppet
+
+# basic <%= lsbdistcodename %>
+deb http://ftp.at.debian.org/debian <%= lsbdistcodename %> main contrib non-free
+# security suppport
+<% if (lsbdistcodename == "sid" || lsbdistcodename == "unstable") -%>
+# There is no security mirror for <%= lsbdistcodename %>
+<% else -%>
+deb http://security.debian.org/ <%= lsbdistcodename %>/updates main contrib non-free
+<% end -%>
+# local packages
+#deb http://puppetmaster:81/ /
+
+# additional packages, see preferences
+#deb http://ftp.at.debian.org/debian sid main
+
+# backports
+<% if (lsbdistcodename == "sid" || lsbdistcodename == "unstable") -%>
+# There are no backports for for <%= lsbdistcodename %>
+<% else -%>
+deb http://www.backports.org/debian/ <%= lsbdistcodename %>-backports main
+<% end -%>
diff --git a/templates/sources.list+unstable.erb b/templates/sources.list+unstable.erb
new file mode 100644
index 0000000..71d2987
--- /dev/null
+++ b/templates/sources.list+unstable.erb
@@ -0,0 +1,15 @@
+# This file is brought to you by puppet
+
+# basic <%= lsbdistcodename %>
+deb http://ftp.at.debian.org/debian <%= lsbdistcodename %> main contrib non-free
+# security suppport
+<% if (lsbdistcodename == "sid" || lsbdistcodename == "unstable") -%>
+# There is no security mirror for <%= lsbdistcodename %>
+<% else -%>
+deb http://security.debian.org/ <%= lsbdistcodename %>/updates main contrib non-free
+<% end -%>
+# local packages
+#deb http://puppetmaster:81/ /
+
+# follow unstable, pinned in preferences
+deb http://ftp.at.debian.org/debian sid main contrib non-free
diff --git a/templates/sources.list.erb b/templates/sources.list.erb
index 7b99434..e4077bb 100644
--- a/templates/sources.list.erb
+++ b/templates/sources.list.erb
@@ -13,10 +13,3 @@ deb http://security.debian.org/ <%= lsbdistcodename %>/updates main contrib non-
# additional packages, see preferences
#deb http://ftp.at.debian.org/debian sid main
-
-# backports
-<% if (lsbdistcodename == "sid" || lsbdistcodename == "unstable") -%>
-# There are no backports for for <%= lsbdistcodename %>
-<% else -%>
-deb http://www.backports.org/debian/ <%= lsbdistcodename %>-backports main
-<% end -%>