On Tue, Aug 31, 2010 at 10:03 AM, Martijn Grendelman <mart...@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 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 puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.