[chef] How to fail the chef run from a start handler?


Chronological Thread 
  • From: Steffen Gebert < >
  • To:
  • Subject: [chef] How to fail the chef run from a start handler?
  • Date: Sun, 17 Nov 2013 00:26:37 +0100

Hi,

I'm playing around with etckeeper and chef and wrote a start handler
that should prevent chef from doing anything, if /etc was modified
previously.

Is there any way to fail the chef run from a handler? They are executed
with run_report_safely, which catches all the exceptions.

Thanks for your help
Steffen

[1] https://github.com/opscode/chef/blob/master/lib/chef/handler.rb#L213




Archive powered by MHonArc 2.6.16.

§