Skip to main content

Writing Custom Resources for Chef

Hands-On Lab


Photo of

Training Architect





Removing duplication in code is one of the easiest ways to improve maintainability. This is true within Chef recipes. Extracting code to be reused in Chef is often done by creating custom resources. In this hands-on lab, you'll be asked to create a custom resource. It needs to easily set up a new user on a node, then install packages that the user would like from a data bag. By the time you've finished this lab, you should feel more comfortable creating reusable custom resources for Chef.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.