]> gitweb.fluxo.info Git - puppet-apt.git/log
puppet-apt.git
13 years agoadded release-specific config files for unattended upgrades
nadir [Mon, 12 Nov 2012 22:27:04 +0000 (23:27 +0100)]
added release-specific config files for unattended upgrades

13 years agoupdated README to explain $apt_disable_update
nadir [Thu, 8 Nov 2012 09:16:09 +0000 (10:16 +0100)]
updated README to explain $apt_disable_update

13 years agoadded $apt_disable_update to disable "apt-get update" during puppetruns
nadir [Thu, 8 Nov 2012 09:07:38 +0000 (10:07 +0100)]
added $apt_disable_update to disable "apt-get update" during puppetruns

13 years agoPrecision on file name format in preferences.d directory
Gabriel Filion [Thu, 20 Sep 2012 08:08:38 +0000 (04:08 -0400)]
Precision on file name format in preferences.d directory

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
13 years agoDefine an alias when enforcing absence of /etc/apt/preferences
Gabriel Filion [Thu, 20 Sep 2012 08:00:38 +0000 (04:00 -0400)]
Define an alias when enforcing absence of /etc/apt/preferences

This ensures that resources that set a dependecy on the
"File['apt_config']" file, as mentioned in the README, can always
resolve.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
13 years agoSome stylistic corrections in manifest examples in the README
Gabriel Filion [Thu, 20 Sep 2012 07:59:58 +0000 (03:59 -0400)]
Some stylistic corrections in manifest examples in the README

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
13 years agoMake apt::preferences_snippet place files in /etc/apt/preferences.d
Gabriel Filion [Thu, 20 Sep 2012 07:55:58 +0000 (03:55 -0400)]
Make apt::preferences_snippet place files in /etc/apt/preferences.d

Since Debian Squeeze, apt supports a .d directory for preferences
(pinning). Simplify management by just placing files inside this .d
directory.

This removes the need for concat and concat::fragment resources, so
removes the dependency on the concat module. It also removes the need
for a moduledir that was needed for the concat module magic, so we also
get rid of the dependency on the common module.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
13 years agoStop using config_file from the common module
Gabriel Filion [Thu, 20 Sep 2012 06:54:26 +0000 (02:54 -0400)]
Stop using config_file from the common module

This define doesn't add much of a shortcut and imposes a dependency on
the "common" module. We'll be better off with the small repetition but
less tightly coupled modules.

Sadly, the "common" module is still required, but that is going to be
the focus of the commit that follows this one.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
13 years agoAdd upgrade notices about the changes to parameterized classes; add a Requirements...
Micah Anderson [Wed, 22 Aug 2012 14:57:06 +0000 (10:57 -0400)]
Add upgrade notices about the changes to parameterized classes; add a Requirements header; move things that used to be called variables into the appropriate parameterized class section

13 years agoparameterize the apt::proxy_client class
Micah Anderson [Wed, 22 Aug 2012 14:55:25 +0000 (10:55 -0400)]
parameterize the apt::proxy_client class

13 years agoMerge remote-tracking branch 'shared/master'
mh [Thu, 16 Aug 2012 07:35:21 +0000 (09:35 +0200)]
Merge remote-tracking branch 'shared/master'

Conflicts:
README
manifests/dist_upgrade/initiator.pp
manifests/init.pp
manifests/preseeded_package.pp
manifests/unattended_upgrades.pp

13 years agoupdate README to reflect the requirement of the lsb module
Micah Anderson [Wed, 8 Aug 2012 15:25:02 +0000 (11:25 -0400)]
update README to reflect the requirement of the lsb module

13 years agoMake apt::preferences_snippet support Puppet < 2.7 again, when the 'package' paramete...
intrigeri [Mon, 18 Jun 2012 20:57:13 +0000 (22:57 +0200)]
Make apt::preferences_snippet support Puppet < 2.7 again, when the 'package' parameter is not set.

Details:
  https://labs.riseup.net/code/issues/3467
  https://labs.riseup.net/code/issues/3468

13 years agofix auto repo selection
mh [Mon, 18 Jun 2012 20:33:42 +0000 (17:33 -0300)]
fix auto repo selection

the actual repos are in real_repos as by default we have auto.

13 years agofix relations and finally get rid off config_file
mh [Mon, 18 Jun 2012 20:10:40 +0000 (17:10 -0300)]
fix relations and finally get rid off config_file

13 years agoget rid off config_file wrapper
mh [Mon, 18 Jun 2012 14:41:04 +0000 (11:41 -0300)]
get rid off config_file wrapper

13 years agomigrate away from hiera stuff
mh [Thu, 14 Jun 2012 13:07:29 +0000 (10:07 -0300)]
migrate away from hiera stuff

13 years agoAllow passing arbitrary Pin value to apt::preferences_snippet.
intrigeri [Fri, 8 Jun 2012 16:30:23 +0000 (18:30 +0200)]
Allow passing arbitrary Pin value to apt::preferences_snippet.

Closes: Redmine#3467.
13 years agoSupport multiple APT preferences snippets for the same package name pattern.
intrigeri [Fri, 8 Jun 2012 16:18:50 +0000 (18:18 +0200)]
Support multiple APT preferences snippets for the same package name pattern.

This is implemented by adding a "package" parameter to apt::preferences_snippet,
so that define names can be kept unique while the package names are
not necessarily.

Closes: Redmine#3468.
13 years agorefactor things for >2.7
mh [Fri, 8 Jun 2012 15:16:46 +0000 (12:16 -0300)]
refactor things for >2.7

13 years agoMigrate - in class names to _
mh [Sun, 15 Apr 2012 13:41:58 +0000 (15:41 +0200)]
Migrate - in class names to _

In newer puppet releases the old way to name class/modules with a -,
won't anymore be supported.

Conflicts:

manifests/unattended_upgrades.pp

13 years agonew style for 2.7
mh [Wed, 6 Jun 2012 00:31:15 +0000 (21:31 -0300)]
new style for 2.7

13 years agoChanging ubuntu preferences templates to symlinks
Silvio Rhatto [Wed, 9 May 2012 22:48:25 +0000 (19:48 -0300)]
Changing ubuntu preferences templates to symlinks

13 years agoAdding precise template
Silvio Rhatto [Wed, 9 May 2012 16:04:52 +0000 (13:04 -0300)]
Adding precise template

13 years agoAdding preferences_oneiric.erb
Silvio Rhatto [Fri, 3 Feb 2012 16:58:23 +0000 (14:58 -0200)]
Adding preferences_oneiric.erb

13 years agoChanging ubuntu preferences templates to symlinks
Silvio Rhatto [Wed, 9 May 2012 22:48:25 +0000 (19:48 -0300)]
Changing ubuntu preferences templates to symlinks

13 years agoAdding precise template
Silvio Rhatto [Wed, 9 May 2012 16:04:52 +0000 (13:04 -0300)]
Adding precise template

13 years agoApply GPL-v3 license
Gabriel Filion [Sat, 21 Apr 2012 09:54:28 +0000 (05:54 -0400)]
Apply GPL-v3 license

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
13 years agoMigrate - in class names to _
mh [Sun, 15 Apr 2012 13:41:58 +0000 (15:41 +0200)]
Migrate - in class names to _

In newer puppet releases the old way to name class/modules with a -,
won't anymore be supported.

13 years agoMerge remote-tracking branch 'shared/master'
mh [Sun, 15 Apr 2012 11:18:59 +0000 (13:18 +0200)]
Merge remote-tracking branch 'shared/master'

Conflicts:
README

13 years agoFix formatting.
intrigeri [Wed, 11 Apr 2012 09:37:24 +0000 (11:37 +0200)]
Fix formatting.

13 years agoDepend on our shared concat module rather than ripienaar's one.
intrigeri [Wed, 11 Apr 2012 09:36:31 +0000 (11:36 +0200)]
Depend on our shared concat module rather than ripienaar's one.

Most of us are likely to use and test against the former.

13 years agouse correct references for new concat usage
mh [Fri, 5 Aug 2011 09:22:05 +0000 (11:22 +0200)]
use correct references for new concat usage

13 years agouse the correct name
mh [Fri, 5 Aug 2011 09:12:29 +0000 (11:12 +0200)]
use the correct name

13 years agomigrate concatenated_file to the concat module
mh [Fri, 5 Aug 2011 08:57:13 +0000 (10:57 +0200)]
migrate concatenated_file to the concat module

13 years agoForce an apt-get update when changing an apt::sources_list
Gabriel Filion [Mon, 9 Apr 2012 05:39:29 +0000 (01:39 -0400)]
Force an apt-get update when changing an apt::sources_list

sources_list doesn't currently force puppet to run 'apt-get update'
after creating/modifying/removing files in sources.list.d.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
13 years agoRefactor: manage .d directories when using sources_list and apt_conf
Gabriel Filion [Mon, 9 Apr 2012 05:33:13 +0000 (01:33 -0400)]
Refactor: manage .d directories when using sources_list and apt_conf

The .d directories are only managed by the main 'apt' class. However,
both 'sources_list' and 'apt_conf' defines depend on those directories.
So in practice, the defines have an implicit need for those directories
to be somehow managed.

Let's turn this into an explicit relation, and include the directories
in the defines.

This makes it possible to use both defines without having to include the
main 'apt' class. (maybe when using puppet apply?)

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
13 years agoEnable Unattended-Upgrade::MailOnlyOnError also for lucid (Closes Redmine#3740).
Silvio Rhatto [Wed, 21 Mar 2012 16:01:39 +0000 (13:01 -0300)]
Enable Unattended-Upgrade::MailOnlyOnError also for lucid (Closes Redmine#3740).

13 years agoMerge branch 'master' of git://labs.riseup.net/shared-apt
Silvio Rhatto [Wed, 21 Mar 2012 15:46:05 +0000 (12:46 -0300)]
Merge branch 'master' of git://labs.riseup.net/shared-apt

14 years agoAdding preferences_oneiric.erb
Silvio Rhatto [Fri, 3 Feb 2012 16:58:23 +0000 (14:58 -0200)]
Adding preferences_oneiric.erb

14 years agoEnable Unattended-Upgrade::MailOnlyOnError (Closes Redmine#3740).
intrigeri [Mon, 9 Jan 2012 12:48:42 +0000 (13:48 +0100)]
Enable Unattended-Upgrade::MailOnlyOnError (Closes Redmine#3740).

14 years agoRemoving duplicate "main" definition at lucid sources.list
Silvio Rhatto [Mon, 26 Dec 2011 11:53:10 +0000 (09:53 -0200)]
Removing duplicate "main" definition at lucid sources.list

14 years agoAdding missing 10periodic
Silvio Rhatto [Sun, 25 Dec 2011 12:56:25 +0000 (10:56 -0200)]
Adding missing 10periodic

14 years agoSetting correct Unattended-Upgrade::Allowed-Origins for lucid
Silvio Rhatto [Sun, 25 Dec 2011 12:54:44 +0000 (10:54 -0200)]
Setting correct Unattended-Upgrade::Allowed-Origins for lucid

14 years agoAdd 10periodic config needed by unattended-upgrades on ubuntu
Silvio Rhatto [Sun, 25 Dec 2011 12:53:15 +0000 (10:53 -0200)]
Add 10periodic config needed by unattended-upgrades on ubuntu

14 years agoAdding unnatended-upgrades config for lucid
Silvio Rhatto [Mon, 5 Dec 2011 18:31:38 +0000 (16:31 -0200)]
Adding unnatended-upgrades config for lucid

14 years agoAdd apticron.conf template for Debian sid.
intrigeri [Thu, 6 Oct 2011 17:09:48 +0000 (19:09 +0200)]
Add apticron.conf template for Debian sid.

14 years agoAdd listchanges.conf template for Debian sid.
intrigeri [Thu, 6 Oct 2011 17:04:42 +0000 (19:04 +0200)]
Add listchanges.conf template for Debian sid.

14 years agoAdding preferences_lucid.erb
Silvio Rhatto [Mon, 5 Sep 2011 13:51:28 +0000 (10:51 -0300)]
Adding preferences_lucid.erb

14 years agoRollback: backports have more than just 'main' section
Silvio Rhatto [Tue, 30 Aug 2011 13:07:24 +0000 (10:07 -0300)]
Rollback: backports have more than just 'main' section

14 years agoMerge branch 'master' of git://labs.riseup.net/shared-apt
Silvio Rhatto [Fri, 26 Aug 2011 15:06:55 +0000 (12:06 -0300)]
Merge branch 'master' of git://labs.riseup.net/shared-apt

14 years agoBackports have just 'main' section
Silvio Rhatto [Fri, 26 Aug 2011 14:44:19 +0000 (11:44 -0300)]
Backports have just 'main' section

14 years agouse correct references for new concat usage
mh [Fri, 5 Aug 2011 09:22:05 +0000 (11:22 +0200)]
use correct references for new concat usage

14 years agouse the correct name
mh [Fri, 5 Aug 2011 09:12:29 +0000 (11:12 +0200)]
use the correct name

14 years agomigrate concatenated_file to the concat module
mh [Fri, 5 Aug 2011 08:57:13 +0000 (10:57 +0200)]
migrate concatenated_file to the concat module

14 years agoMerge remote-tracking branch 'shared/master'
mh [Fri, 5 Aug 2011 08:56:47 +0000 (10:56 +0200)]
Merge remote-tracking branch 'shared/master'

14 years agoAdd preferences, listchanges, apticron templates for Debian Wheezy.
intrigeri [Tue, 7 Jun 2011 22:44:01 +0000 (00:44 +0200)]
Add preferences, listchanges, apticron templates for Debian Wheezy.

14 years agofixing unattended upgrade
mh [Mon, 6 Jun 2011 23:02:01 +0000 (01:02 +0200)]
fixing unattended upgrade

We should use the correct origin archive. Lenny is oldstable.

14 years agofix unattended upgrades
mh [Sun, 5 Jun 2011 12:58:22 +0000 (14:58 +0200)]
fix unattended upgrades

as we use $lsbdistcodename as source we cannot name the sources
which should be used to update "stable". -> Fix it by deploying
a per lsbdistcodename configfile. This can also be used as a pre-
work for the #2681 shared modules bug.

14 years agoAdd empty line at the end of preferences templates.
intrigeri [Sat, 7 May 2011 16:15:02 +0000 (18:15 +0200)]
Add empty line at the end of preferences templates.

... else the first block added by apt::preferences_snippet is in the same
paragraph as the last block provided by the template.

14 years agoRevert "apt::custom_sources_template to deploy custom sources.list.d/xyz.list"
intrigeri [Mon, 25 Apr 2011 20:50:53 +0000 (22:50 +0200)]
Revert "apt::custom_sources_template to deploy custom sources.list.d/xyz.list"

This reverts commit 3c0499b78d1f671fcce13127ef14b1b662a48c5a.
This was already provided by sources_list.pp.

14 years agoMerge remote-tracking branch 'nadir/master'
Micah Anderson [Sat, 23 Apr 2011 14:50:53 +0000 (10:50 -0400)]
Merge remote-tracking branch 'nadir/master'

14 years agoMerge remote-tracking branch 'immerda/master'
Micah Anderson [Sat, 23 Apr 2011 14:50:48 +0000 (10:50 -0400)]
Merge remote-tracking branch 'immerda/master'

14 years agoDebian sources: don't use next release's backports.
intrigeri [Sat, 23 Apr 2011 11:08:33 +0000 (13:08 +0200)]
Debian sources: don't use next release's backports.

The APT pinning we ship does not support that, and this seems a bit too much of
a corner case to me to deserve being supported out-of-the-box.

Anyone willing to use current release + next release + next release backports
(e.g. Lenny + Squeeze + squeeze-backports) can anyway do so using
apt::sources_list and apt::preferences_snippet.

https://labs.riseup.net/code/issues/2856 is the bug that triggered this change.

14 years agoREADME fix - we should use template not an url
mh [Thu, 14 Apr 2011 19:50:54 +0000 (21:50 +0200)]
README fix - we should use template not an url

14 years agoRemove pinning for backports on Squeeze.
intrigeri [Sun, 3 Apr 2011 17:27:43 +0000 (19:27 +0200)]
Remove pinning for backports on Squeeze.

This is now done automatically by APT.

14 years agoPossibility to delpoy release related config file
root [Sat, 2 Apr 2011 11:16:43 +0000 (11:16 +0000)]
Possibility to delpoy release related config file

14 years agoMerge branch 'master' of git://labs.riseup.net/shared-apt
root [Sat, 2 Apr 2011 07:53:38 +0000 (07:53 +0000)]
Merge branch 'master' of git://labs.riseup.net/shared-apt

14 years agoMerge branch 'master' of git://labs.riseup.net/shared-apt
Silvio Rhatto [Sat, 19 Feb 2011 19:03:11 +0000 (17:03 -0200)]
Merge branch 'master' of git://labs.riseup.net/shared-apt

14 years agoapt::cron::dist-upgrade: silently keep old version of conffiles.
intrigeri [Fri, 18 Feb 2011 21:41:36 +0000 (22:41 +0100)]
apt::cron::dist-upgrade: silently keep old version of conffiles.

This makes this class' behaviour consistent with the apt::dist_upgrade one
and prevents stalled upgrades due to dpkg asking questions to a dumb robot.

14 years agoMerge branch 'master' of git://labs.riseup.net/shared-apt
root [Wed, 16 Feb 2011 13:23:54 +0000 (13:23 +0000)]
Merge branch 'master' of git://labs.riseup.net/shared-apt

14 years agoMerge branch 'master' of git://labs.riseup.net/shared-apt
Silvio Rhatto [Mon, 14 Feb 2011 16:11:19 +0000 (14:11 -0200)]
Merge branch 'master' of git://labs.riseup.net/shared-apt

Conflicts:
manifests/init.pp
templates/sources.list.backports.erb

14 years agoFixing apt_base_dir
Silvio Rhatto [Mon, 14 Feb 2011 15:49:56 +0000 (13:49 -0200)]
Fixing apt_base_dir

14 years agoRemove assert_lsbdistcodename requirements
Silvio Rhatto [Mon, 14 Feb 2011 15:13:09 +0000 (13:13 -0200)]
Remove assert_lsbdistcodename requirements

14 years agoUsing the lsb module
Silvio Rhatto [Mon, 14 Feb 2011 15:00:43 +0000 (13:00 -0200)]
Using the lsb module

14 years agoDebian Squeeze pinning: pin squeeze-updates as much as regular squeeze.
intrigeri [Mon, 14 Feb 2011 09:52:25 +0000 (10:52 +0100)]
Debian Squeeze pinning: pin squeeze-updates as much as regular squeeze.

The previous template was indeed ensuring no package from squeeze-updates could
be easily or automatically installed.

14 years agoStop hard-coding Wheezy name in Squeeze's pinning template.
intrigeri [Mon, 7 Feb 2011 10:40:00 +0000 (11:40 +0100)]
Stop hard-coding Wheezy name in Squeeze's pinning template.

Every needed function has been updated since Squeeze was released and we can
thus use a nice generic template.

14 years agodebian_nextcodename: take into account Squeeze was released.
intrigeri [Mon, 7 Feb 2011 10:28:29 +0000 (11:28 +0100)]
debian_nextcodename: take into account Squeeze was released.

14 years agodebian_release_version: add Squeeze's version number.
intrigeri [Mon, 7 Feb 2011 10:27:54 +0000 (11:27 +0100)]
debian_release_version: add Squeeze's version number.

14 years agoStarting from Squeeze, Debian Volatile is deprecated in favor of CODENAME-updates.
intrigeri [Mon, 7 Feb 2011 10:17:07 +0000 (11:17 +0100)]
Starting from Squeeze, Debian Volatile is deprecated in favor of CODENAME-updates.

Take this into account in the Debian sources.list template:
  - go on using volatile.d.o for <= Lenny sources lines
  - start using CODENAME-updates for Squeeze and newer.

Reference: http://lists.debian.org/debian-volatile/2011/01/msg00008.html

14 years agoUpdate debian_release function since Squeeze has been released.
intrigeri [Sun, 6 Feb 2011 07:56:54 +0000 (08:56 +0100)]
Update debian_release function since Squeeze has been released.

15 years agoupdated Ubuntu preferences to include security + updates
varac [Sat, 29 Jan 2011 12:27:03 +0000 (13:27 +0100)]
updated Ubuntu preferences to include security + updates

15 years agopreferences.pp for ubuntu maverick
varac [Sun, 23 Jan 2011 22:33:06 +0000 (23:33 +0100)]
preferences.pp for ubuntu maverick

15 years agoapt::custom_sources_template to deploy custom sources.list.d/xyz.list
nadir [Sun, 9 Jan 2011 21:57:18 +0000 (22:57 +0100)]
apt::custom_sources_template to deploy custom sources.list.d/xyz.list

15 years agoMake sources snippets world-readable.
intrigeri [Sat, 8 Jan 2011 18:39:10 +0000 (19:39 +0100)]
Make sources snippets world-readable.

Not doing this breaks big parts of functionality, such as aptitude why.

15 years agoadd -q to the apt-get invocation in upgrade_package.pp, also switch to using -y inste...
Micah Anderson [Sat, 18 Dec 2010 20:47:11 +0000 (15:47 -0500)]
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

15 years agoswitch aptitude to apt-get, since aptitude will sometimes automatically do things...
Micah Anderson [Sat, 18 Dec 2010 19:01:11 +0000 (14:01 -0500)]
switch aptitude to apt-get, since aptitude will sometimes automatically do things that are unrelated to the task at hand, such as deinstalling automatically installed packages, which can be undesirable behavior

15 years agoFix apt::upgrade_package when used multiple times.
intrigeri [Thu, 16 Dec 2010 17:14:23 +0000 (18:14 +0100)]
Fix apt::upgrade_package when used multiple times.

15 years agoNew class: apt::dist_upgrade::initiator.
intrigeri [Thu, 16 Dec 2010 12:03:08 +0000 (13:03 +0100)]
New class: apt::dist_upgrade::initiator.

This implements the "update initiator" pattern suggested by
http://projects.puppetlabs.com/projects/puppet/wiki/Debian_Patterns.

This feature is useful when one does not want to setup a fully automated upgrade
process but still needs a way to manually trigger full upgrades of any number of
systems at scheduled times.

15 years agoNew class: apt::dist_upgrade.
intrigeri [Thu, 16 Dec 2010 12:02:28 +0000 (13:02 +0100)]
New class: apt::dist_upgrade.

15 years agoApply fix from 67dc9a22 to Squeeze template as well.
intrigeri [Wed, 15 Dec 2010 21:20:08 +0000 (22:20 +0100)]
Apply fix from 67dc9a22 to Squeeze template as well.

15 years agoFix 5237f9da.
intrigeri [Wed, 15 Dec 2010 21:11:34 +0000 (22:11 +0100)]
Fix 5237f9da.

15 years agoMerge remote branch 'riseup/master'
intrigeri [Wed, 15 Dec 2010 21:01:34 +0000 (22:01 +0100)]
Merge remote branch 'riseup/master'

15 years agofix apticron template
Micah Anderson [Wed, 15 Dec 2010 20:46:20 +0000 (15:46 -0500)]
fix apticron template

15 years agochange $listchanges_* to $apt_listchanges, not nice to clutter up the namespace like...
Micah Anderson [Wed, 15 Dec 2010 19:49:34 +0000 (14:49 -0500)]
change $listchanges_* to $apt_listchanges, not nice to clutter up the namespace like that

15 years agoFix packages dependency.
intrigeri [Wed, 15 Dec 2010 14:18:16 +0000 (15:18 +0100)]
Fix packages dependency.

15 years agoUse line define instead of append_if_no_such_line.
intrigeri [Wed, 15 Dec 2010 09:44:14 +0000 (10:44 +0100)]
Use line define instead of append_if_no_such_line.

The latter is only a wrapper around the former and it seems we want to remove
the latter from our shared common module.

15 years agoapt::upgrade_package: explicitly depend on needed packages.
intrigeri [Wed, 15 Dec 2010 09:00:47 +0000 (10:00 +0100)]
apt::upgrade_package: explicitly depend on needed packages.

This define was previously broken unless dctrl-tools and apt-show-versions were
installed.

15 years agoRepair Exec['update_apt'] to run apt-get update when needed.
intrigeri [Wed, 15 Dec 2010 08:47:57 +0000 (09:47 +0100)]
Repair Exec['update_apt'] to run apt-get update when needed.

Move this Exec to a dedicated class that is not included by default i.e. we
default not to "apt-get update" on every Puppet run.

We now make use of this class in the apt::upgrade_package define to make sure
APT indexes are up-to-date before attempting package upgrades.

One may now use the following to ensure current packages are installed by
Package resources:

  include apt::update
  Package { require => Exec[apt_updated] }

15 years ago(ugly workaround warning) Update packages lists before upgrading a package.
intrigeri [Tue, 14 Dec 2010 21:04:05 +0000 (22:04 +0100)]
(ugly workaround warning) Update packages lists before upgrading a package.

... because Exec[update_apt] is currently never run since we set it refreshonly.
Better solutions are being thought of, but in the meantime the least we can do
is somehow repair apt::upgrade_package.