- From: Gregory Patmore <
>
- To: "
" <
>
- Subject: [chef] Re: Check if recipe is being used
- Date: Thu, 29 May 2014 19:04:18 -0400
search key "recipes" is what your looking for. This way it checks the
expanded run list that is established after chef explodes any roles (and
environments I think?) that are assigned to the node.
to search for recipe 'install' from the 'widget' cookbook you would:
knife search node "recipes:widget\:\:install"
# note the escaping of the double colon
The only snafu with this approach is if someone hates you and uses
include_recipe inside of another recipe. A recursive grep on your chef repo
should reveal the culprit(s).
Sent from my iPhone
>
On May 28, 2014, at 11:04 AM, Adam
>
<
>
>
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.