Until now, we've seen how to created a hosted Chef account, how to configure a Chef workstation, and how to converge a node.
Now it is time to install software packages using cookbooks. To set up the runtime environment automatically, it's best to use the Chef community cookbooks:
Visit https://github.com/chef-cookbooks and find all the community cookbooks required to set up a runtime environment, as shown in the following screenshot:
We are using a sample Spring application, namely, PetClinic. We need to install Java and Tomcat to run a Java EE application such as this.
Download the Tomcat cookbook from https://supermarket.chef.io/cookbooks/tomcat , and navigate to the Dependencies section on that page. Without the dependencies uploaded to our Chef server, we can't upload the Tomcat cookbook to use it.