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


Chronological Thread 
  • From: Peter Donald < >
  • To: chef-dev < >
  • Subject: [chef-dev] Re: Re: Exclude a recipe in whyrun mode
  • Date: Thu, 6 Dec 2012 14:12:34 +1100

Hi,

On Thu, Dec 6, 2012 at 1:26 PM, Kishore S Kumar < " target="_blank"> > wrote:

There are few resources which no matter what, will always say that it would be updated, for example, if I had a huge runlist with one of it having a recipe that uses remote_directory and I run them in whyrun mode immediately after a normal client run, the whyrun output would say "1 resource would be updated".  However in my case I don't care about whether remote directory runs or not I only care about my recipes so I would expect an output that says 0 resources would have been updated. Hence the need to ignore them at whyrun.


I am not sure it is possible. It is also a pain point in the handlers aswell. In several of our handlers we allow the configuration of blacklisted resources [1] that we know will spuriously report changes or report changes we don't care about. It would be nice to have a universal way of blacklisting changes across handlers and why run if possible. 

[1] https://github.com/realityforge/chef-gelf_handler/blob/master/files/default/chef_gelf_handler.rb#L66 

--
Cheers,

Peter Donald



Archive powered by MHonArc 2.6.16.

§