[chef] Re: Re: Check if recipe is being used


Chronological Thread 
  • From: Eric Herot < >
  • To:
  • Subject: [chef] Re: Re: Check if recipe is being used
  • Date: Wed, 28 May 2014 11:49:16 -0400

You can also search directly:

knife search node ‘recipes:name-of-recipe’

This does require that all of your nodes are running a recent enough version of the chef-client that the recipe node attribute actually includes all of the derived recipes.  I think that was fixed in version 11.10.0.
-- 
Eric

From: Ranjib Dey ">
Reply:  ">
Date: May 28, 2014 at 11:42:33 AM
To:  ">
Subject:  [chef] Re: Check if recipe is being used

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.

§