Writing Custom Resources for Chef
DevOps Training Architect II in Content
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.