module-apt/templates/Debian
Micah Anderson 07a031f205 fix for $lsbdistcodename regression introduced by ac166366d7
What happened here was the $codename = $::lsbdistcodename was removed from
init.pp and replaced with just $::lsbdistcodename whereever $codename was
used. Then in the sources.list.erb and preferences files things were changed
like this:

<pre>+### Debian current: <%= codename = scope.lookupvar('::lsbdistcodename') %>
...
-deb <%= debian_url %> <%= codename %> <%= repos %>
...
+deb <%= debian_url=scope.lookupvar('apt::debian_url') %> <%= codename %> <%= repos=scope.lookupvar('apt::repos') %>
</pre>

This meant that the codename was always set to lsbdistcodename, and you because
in newer puppet versions you cannot assign a value to a top-level facter
variable, it is not possible to change this.

Because we cannot change $lsbdistcodename, we have to fix this by allowing the
user to pass a different, non-top-level scoped variable to the class as a
parameter, which defaults to $::lsbdistcodename, so that upgrades can be
triggered.

This is documented in the README in an upgrade notice
2012-12-05 13:46:23 -05:00
..
apticron_lenny.erb new style for 2.7 2012-06-05 21:31:15 -03:00
apticron_sid.erb Add apticron.conf template for Debian sid. 2011-10-06 19:09:48 +02:00
apticron_squeeze.erb new style for 2.7 2012-06-05 21:31:15 -03:00
apticron_wheezy.erb new style for 2.7 2012-06-05 21:31:15 -03:00
listchanges_lenny.erb new style for 2.7 2012-06-05 21:31:15 -03:00
listchanges_sid.erb Add listchanges.conf template for Debian sid. 2011-10-06 19:04:42 +02:00
listchanges_squeeze.erb add apt-listchanges support. this is a nice compliment to using the upgrade_package functionality, because you get an email when the package has been upgraded. 2010-12-08 22:25:09 -05:00
listchanges_wheezy.erb Add preferences, listchanges, apticron templates for Debian Wheezy. 2011-06-20 20:07:24 +02:00
preferences_lenny.erb fix for $lsbdistcodename regression introduced by ac166366d7 2012-12-05 13:46:23 -05:00
preferences_sid.erb Add empty line at the end of preferences templates. 2011-05-07 18:15:02 +02:00
preferences_squeeze.erb fix for $lsbdistcodename regression introduced by ac166366d7 2012-12-05 13:46:23 -05:00
preferences_wheezy.erb fix for $lsbdistcodename regression introduced by ac166366d7 2012-12-05 13:46:23 -05:00
sources.list.erb fix for $lsbdistcodename regression introduced by ac166366d7 2012-12-05 13:46:23 -05:00