Writing Custom Resources for Chef

Hands-On Lab

 

Photo of Keith Thompson

Keith Thompson

DevOps Training Architect II in Content

Length

01:00:00

Difficulty

Intermediate

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 learning activity, 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 activity, 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.