[chef-dev] Re: Exclude a recipe in whyrun mode


Chronological Thread 
  • From: Daniel DeLeo < >
  • To: Kishore S Kumar < >
  • Cc: chef-dev < >
  • Subject: [chef-dev] Re: Exclude a recipe in whyrun mode
  • Date: Wed, 5 Dec 2012 08:14:56 -0800


On Wednesday, December 5, 2012 at 7:14 AM, Kishore S Kumar wrote:

Is there a way to exclude a recipe when in whyrun mode?

I mean when running a chef-client run in whyrun mode is there a way I could specify on the recipe to not consider it when in whyrun mode i.e. Nothing related to that recipe should be displayed in whyrun output.

Thanks,
Kishore

Your best bet is to use the `--override-runlist` option to chef-client.  Alternatively, you could add checks for `Chef::Config[:why_run]` to your recipe.

-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§