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

Darren Chamberlain
Tue, 31 Aug 2010 20:41:16 -0000

* Martijn Grendelman <martijn at grendelman.net> [2010/08/31
22:02]:
> 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.

I would do the `aptitude update` in cron, outside of puppet, and
manage the cronjob via the cron type.  That would eliminate your
precedence and ordering problems completely.

--
There are only two hard things in Computer Science: cache invalidation
and naming things.
    -- Phil Karlton