module-apt/manifests
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
..
cron fix relations and finally get rid off config_file 2012-06-18 17:10:40 -03:00
dist_upgrade Migrate - in class names to _ 2012-06-08 15:07:48 +02:00
preferences format standardization 2010-12-07 13:18:41 -05:00
apt_conf.pp Force an apt-get update when changing an apt::sources_list 2012-04-09 01:39:29 -04:00
apticron.pp migrate away from hiera stuff 2012-06-14 10:07:29 -03:00
dist_upgrade.pp New class: apt::dist_upgrade. 2010-12-16 13:02:28 +01:00
dot_d_directories.pp Refactor: manage .d directories when using sources_list and apt_conf 2012-04-09 01:38:30 -04:00
dselect.pp Use line define instead of append_if_no_such_line. 2010-12-15 10:44:14 +01:00
init.pp fix for $lsbdistcodename regression introduced by ac166366d7 2012-12-05 13:46:23 -05:00
listchanges.pp migrate away from hiera stuff 2012-06-14 10:07:29 -03:00
preferences.pp fix for $lsbdistcodename regression introduced by ac166366d7 2012-12-05 13:46:23 -05:00
preferences_snippet.pp Make apt::preferences_snippet support Puppet < 2.7 again, when the 'package' parameter is not set. 2012-06-18 22:57:13 +02:00
preseeded_package.pp Migrate - in class names to _ 2012-06-08 15:07:48 +02:00
proxy_client.pp parameterize the apt::proxy_client class 2012-08-22 10:55:25 -04:00
reboot_required_notify.pp apt::reboot_required_notify: take into account the random sleep time. 2010-12-13 10:08:47 +01:00
sources_list.pp Force an apt-get update when changing an apt::sources_list 2012-04-09 01:39:29 -04:00
unattended_upgrades.pp Migrate - in class names to _ 2012-06-08 15:07:48 +02:00
update.pp fix relations and finally get rid off config_file 2012-06-18 17:10:40 -03:00
upgrade_package.pp add -q to the apt-get invocation in upgrade_package.pp, also switch to using -y instead of --force-yes. this way we are acting in the same way as the dist_upgrade class 2010-12-18 15:47:11 -05:00