]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
flip around security support for debian
authorGabriel Filion <gabster@lelutin.ca>
Sat, 6 Dec 2014 02:29:09 +0000 (21:29 -0500)
committerGabriel Filion <gabster@lelutin.ca>
Sat, 6 Dec 2014 02:29:09 +0000 (21:29 -0500)
with the release of squeeze-lts, the current way we deal with security
sources is problemaic. by flipping things around we hope to make the
files contents more stable.

templates/Debian/sources.list.erb

index 65b59458f88d0d97b618e3d357a99f2e2ad64b7d..00f3618f4b22e04967883e9c5799e7213ffbeb65 100644 (file)
@@ -10,13 +10,13 @@ deb-src <%= debian_url %> <%= codename %> <%= lrepos %>
 <% end -%>
 
 # security
-<% if ((release=scope.lookupvar('apt::release')) == "unstable" || release == "experimental") -%>
-# There is no security support for <%= release %>
-<% else -%>
+<% if ((release=scope.lookupvar('apt::release')) == "stable" || release == "oldstable") -%>
 deb <%= security_url=scope.lookupvar('apt::security_url') %> <%= codename %>/updates <%= lrepos %>
 <% if include_src -%>
 deb-src <%= security_url %> <%= codename %>/updates <%= lrepos %>
 <% end -%>
+<% else -%>
+# There is no security support for <%= release %>
 <% end -%>
 
 # backports