BT

InfoQ Homepage News Why-run Chef

Why-run Chef

Leia em português

Bookmarks

The new Chef version (10.14.0) released earlier this month delivers an important set of features previously presented at the Chef conference last May. The long anticipated dry run or noops feature (finally named whyrun) allows Chef to predict what changes would be applied to a system to get it up to date according to a given set of recipes.

Because there can be interdependencies between steps in one or more recipes, the tool makes educated assumptions to determine the current state of the system (for example if a service should be running but its state cannot be determined Chef assumes the service would have been installed previously and reports that service would be started, not installed).

It also assumes conditional commands (i.e. containing not_if or only_if attributes) are only used to prevent unnecessary actions (for example don’t upgrade a software installation if the latest version is already installed) and do not change system state.

Another feature presented in May that was delivered with this release is the possibility to choose the output format, from minimal to verbose (rspec-like).

Finally, error inspecting is another new feature that could help Chef users to reduce problem debugging time by suggesting the culprit step in a recipe for some classes of errors.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.