Cookbooks are a collection of recipes and they consist of basic and fundamental units of various policies and distributions. Each cookbook contains complete setups to install every distribution on a machine.
For instance, we need a web server, so we are installing Nginx to act as a web server. The Nginx cookbook should contain all the package names that are dependent to install Nginx. Moreover, it should provide step-by-step instructions to the machine to make this happen.
Let's have a detailed look at how to develop a cookbook.