[chef] stopping recipe execution early


Chronological Thread 
  • From: "Pitucha, Stanislaw Izaak" < >
  • To: " " < >
  • Subject: [chef] stopping recipe execution early
  • Date: Wed, 17 Oct 2012 10:11:03 +0000
  • Accept-language: en-GB, en-US

Hi all,
Is there some official (or at least working) way to stop execution of a
recipe early? (without affecting the rest of the run list)
For example if I have the whole recipe depending on a single switch, I could
just put it inside of:

if node[:switch]
  ....
end

but that would be spanning a couple of screens of code - not the cleanest
solution. Is there a good way to stop execution without throwing an
exception, so that I can do:

some_stop_function unless node[:switch]

Regards,
StanisÅ‚aw Pitucha
Cloud Services 
Hewlett Packard


Attachment: smime.p7s
Description: S/MIME cryptographic signature




Archive powered by MHonArc 2.6.16.

§