Writing Custom Resources for Chef
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.