Jordan Dea-Mattson
Jordan Dea-Mattson

Reputation: 5821

How do you abort the current recipe during the Chef compile phase?

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

Upvotes: 2

Views: 1877

Answers (1)

Jordan Dea-Mattson
Jordan Dea-Mattson

Reputation: 5821

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.

Upvotes: 4

Related Questions