[chef] Re: Exiting a run mid way through


Chronological Thread 
  • From: Noah Kantrowitz < >
  • To:
  • Subject: [chef] Re: Exiting a run mid way through
  • Date: Mon, 16 Apr 2012 15:12:35 -0700

Just raise an exception, it will abort the run.

--Noah

On Apr 16, 2012, at 1:18 PM, Kendrick Martin wrote:

> Hello all,
> I’m looking for a way to exit a chef run gracefully(including calling 
> handlers) if a specific resource is notified. I am using the reboot handler 
> used in the windows cookbook. I would like the chef run to stop if this 
> resource provider is called so a reboot can be processed. Is there an easy 
> way to accomplish this?
> 
> Kendrick
>  

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail




Archive powered by MHonArc 2.6.16.

§