Creating Custom Resources in Chef
-
Lets try to create a custom resource for deploying tomcat
-
Lets generate a new cookbook for creating custom resources
-
For creating the custom resource Refer Here for official docs. The DSL for Custom Resource is specified over here
-
What are the resources which we need?
- One resource to install and configure tomcat service
- Deploy the application to tomcat.
-
Refer Here for tomcat cookbook created in classroom
-
Also Refer Here for java supermarket cookbook and Refer Here for apache2 supermarket cookbook
Chef Server Installation
- Prereqs Refer Here and also here
- Installation Steps Refer Here
