How to use Chef Provisioning
Now that you have a picture of what Chef provisioning is and how you might use it to turn an application's cluster infrastructure into code, let's take a look at how to actually use it. Like other aspects of Chef, we create recipes for Chef provisioning. And like the recipes in our other cookbooks, these recipes will contain resource definitions that will describe the desired state of our application cluster.
So, let's begin by learning about the resources that we can create in our Chef provisioning recipes.
Chef Provisioning resources
A Chef Provisioning recipe can contain the definitions of the following resources:
with_driver: This resource tells Chef Provisioning the name of the driver to use with subsequent machine resources. The driver name corresponds to the hosting provider, such as Vagrant, AWS, and Docker. More than one with_driver resource can be used in a recipe, providing for the ability to deploy subsets of machines to different hosting providers within...