2

Under some conditions, you want to abort the current recipe during the Chef compile phase? What is the recommended way to accomplish this one?

Jordan Dea-Mattson
  • 5,791
  • 5
  • 38
  • 53

1 Answers1

4

The correct way to abort the current recipe during the Chef compile phase is to return.

Note, this will not abort a Chef run. For how to abort a Chef run, see How to Abort/End A Chef Run.

The response from jtimberman to How to Abort/End A Chef Run gives an incredible amount of background on this topic and is highly recommened.

Community
  • 1
  • 1
Jordan Dea-Mattson
  • 5,791
  • 5
  • 38
  • 53