On Tue, Aug 31, 2010 at 10:03 AM, Martijn Grendelman <[email protected]> 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 http://www.puppetlabs.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
