[chef] Re: Re: Help with window_batch conditional?


Chronological Thread 
  • From: "Julian C. Dunn" < >
  • To:
  • Subject: [chef] Re: Re: Help with window_batch conditional?
  • Date: Tue, 3 Feb 2015 22:10:57 -0500 (EST)
  • Organization: Aquezada Productions

On Tue, 3 Feb 2015, Daniel Condomitti wrote:

The block (code between do/end) is still evaluated, otherwise not_if/only_if wouldn’t fire. cwd/cmd are conditional on the only_if/not_if directives.

If you need to run ruby code conditionally (such as logging) use a ruby_block and notifies.

Or use a 'log' resource/resources with action :nothing and notify it/them from each windows_batch.

- Julian


Archive powered by MHonArc 2.6.16.

§