- From: Adam Jacob <
>
- To:
- Subject: [chef] Re: Re: Listing chef-installed software packages
- Date: Tue, 5 Jul 2011 10:43:50 -0700
On Tue, Jul 5, 2011 at 8:31 AM, Lee Maguire
<
>
wrote:
>
>
> aha.. then its easy, you can use any report handlers, the report method
>
> invoked with a run_status object which contain updated_resources object,
>
> which is actually a resource collection; you can use this collection
>
> and filter out only the packages that are updated or installed.
>
>
So the only way to access this information is adding report handlers to
>
client.rb - it can't be done from within cookbooks?
>
>
I'm trying to automatically populate the deborphan "keep" file with
>
packages that have been installed by chef.
You can do the same by just enumerating the resource collection within
a recipe, and checking each resources updated? status.
That said, doing it in a report handler is probably better - it will
make sure you always catch any installed/updated packages, even in the
case of a recipe aborting with an error.
Best,
Adam
--
Opscode, Inc.
Adam Jacob, Chief Product Officer
T: (206) 619-7151 E:
Archive powered by MHonArc 2.6.16.