[chef] Re: Listing chef-installed software packages


Chronological Thread 
  • From: Ranjib Dey < >
  • To:
  • Subject: [chef] Re: Listing chef-installed software packages
  • Date: Mon, 04 Jul 2011 22:24:42 +0530

On 07/04/2011 10:13 PM, Lee Maguire wrote:
Is there any way, from within a recipe, to obtain an array of all the
system packages (e.g. via apt on debian) or ruby gems explicitly
installed on the node as a result of the node's current run list?

Thanks.

I dont know if there's any clean way to do that, as the ruby gems or deb package dependency is managed via apt or gem (the package manager itself), other wise you can always two execute statements , one beginning of the recipe `gem list > before.gems` and `dpkg --get-selections> before.debs` and one end of the recipe `gem list > after.gems` and `dpkg --get-selections> after.debs` and then use a report handler to get the diff and process it further.

hope this helps
regards
ranjib



Archive powered by MHonArc 2.6.16.

§