[chef] Re: Re: search if a recipe is part of the run-list, including all indirectly included recipes


Chronological Thread 
  • From: Koert Kuipers < >
  • To:
  • Subject: [chef] Re: Re: search if a recipe is part of the run-list, including all indirectly included recipes
  • Date: Tue, 28 May 2013 17:16:35 -0400

i tried this and it expands roles but not recipes.

so if recipe y is in the run-list and recipe y has a 'include_recipe "x"', then search(:node,"recipes:x") does not work


On Tue, May 28, 2013 at 5:14 PM, Ranjib Dey < " target="_blank"> > wrote:
search(:node,"recipes:foo")

note. the attribute `recipes` (against which we are searching here) is populated as per the run list expansion process and stored in the chef server after a successful chef run. Which means it will not include a node(including the self node) that has not gone through at least 1 successful chef run.

regards
ranjib



On Tue, May 28, 2013 at 2:10 PM, Koert Kuipers < " target="_blank"> > wrote:
how can i search if a node ran recipe "x" in it's last chef-run? i don't care if "x" was directly in the run-list, part of a role that was part of the run-list, or if it was included in another recipe in the run-list (so a include_recipe "x" somewhere)





Archive powered by MHonArc 2.6.16.

§