Creating an example use case
In order to understand the creation and use of Custom Resources, let's create a somewhat contrived example use case. In order to avoid getting lost in the details, we'll keep the example simple, using just enough detail so that you can see the power of Custom Resources.
What is the goal?
We have been asked to create a new cookbook to support a brand new web application. The application is going to use several different websites such as a "Users" site, a "Suppliers" site, and a "Customers" site. The developers are saying that there will be several other sites needed in the future, but they want to get started now with these three.
Based on this short user story, we are going to create a new cookbook named "mywebapp", and ...
Get Chef: Powerful Infrastructure Automation now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.