BT

Your opinion matters! Please fill in the InfoQ Survey!

Why-run Chef

| by Manuel Pais Follow 8 Followers on Sep 24, 2012. Estimated reading time: 1 minute |

A note to our readers: As per your request we have developed a set of features that allow you to reduce the noise, while not losing sight of anything that is important. Get email and web notifications by choosing the topics you are interested in.

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 Stage
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.

Tell us what you think

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

Email me replies to any of my messages in this thread
Community comments

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

Email me replies to any of my messages in this thread

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

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT