[chef] Re: Check if recipe is being used


Chronological Thread 
  • From: Ranjib Dey < >
  • To: " " < >
  • Subject: [chef] Re: Check if recipe is being used
  • Date: Wed, 28 May 2014 08:42:03 -0700

which version of of chef you are using? chef stores all recipe name used by a node in an attribute named 'recipes'. you can look into that

knife search node '*:*' -a recipes | grep 'name of recipe'



On Wed, May 28, 2014 at 8:04 AM, Adam < " target="_blank"> > wrote:
Is there a way to tell if a recipe from a cookbook that I wrote is being used
by some other cookbook, or role?  Trying to do some maintenance on our Chef
server and there are duplicate recipes and want to get them cleaned up.  I have
multiple roles and environments so searching through it manually is a bit time
consuming.




Archive powered by MHonArc 2.6.16.

§