[chef] Re: Re: Re: Listing chef-installed software packages

Chronological Thread 
  • From: Tim Diggins < >
  • To:
  • Subject: [chef] Re: Re: Re: Listing chef-installed software packages
  • Date: Tue, 5 Jul 2011 20:16:18 +0100

But I think Lee was asking whether he had to use client.rb to populate the report_handlers - and as far as I understood from http://wiki.opscode.com/display/chef/Exception+and+Report+Handlers, you can  do that from a recipe by using the chef_handler LWRP.

Is that right?

On Tue, Jul 5, 2011 at 6:43 PM, Adam Jacob < "> > wrote:
On Tue, Jul 5, 2011 at 8:31 AM, Lee Maguire < "> > wrote:
> 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.


Opscode, Inc.
Adam Jacob, Chief Product Officer
T: (206) 619-7151 E: ">


Tim Diggins
" target="_blank">

07515 931 642 / +447515931642

Archive powered by MHonArc 2.6.16.