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


Chronological Thread 
  • From: Ranjib Dey < >
  • To:
  • Subject: [chef] Re: search if a recipe is part of the run-list, including all indirectly included recipes
  • Date: Tue, 28 May 2013 14:14:18 -0700

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.

§