Re: [Puppet Users] Puppet + APT, I am lost...

Jeff McCune
Tue, 31 Aug 2010 16:53:17 -0000

On Tue, Aug 31, 2010 at 10:03 AM, Martijn Grendelman
<martijn@grendelman.net> wrote:
>
> What I would like, is for Puppet to run `aptitude update` before it
> installs or upgrades packages. That doesn''t seem out of the
ordinary to
> me, but I can''t make it work in Puppet.

The run stages of puppet 2.6 addresses this need.  I recommend you
look into adding a class to a stage which runs before the main stage.
The class would contain an exec resource to run aptitude update
periodically.

Hope this helps,
--
Jeff McCune