DevOps Lab

Chef Cookbook - Develop a Simple Cookbook and Create a Wrapper Cookbook

We deploy the real environment, you take the scenario-based labs on us. Self-paced, from anywhere, at any time.

Time required: 2 Hours

Objectives

In this lab you will install the ChefDK and configure a CentOS 7 workstation to support a testing environment as well as intantiate a new cookbook using a generator and create InSpec tests and the Chef code to pass those tests. You will also create a template, a library and a custom resource. From there, you will create a wrapper cookbook and integrate the two as an example.

Overview

Log in to the provided CentOS 7 instance using the provided credentials and complete the objectives.

Scenarios

1. Install the ChefDK.
2. Configure your workstation environment.
3. Create a generator.
4. Generate a cookbook called lcd_web using your generator.
5. Create InSpec tests and the Chef code to pass the tests.
6. Create a template.
7. Create a simple library.
8. Create a custom resource.
9. Create a wrapper cookbook.

Share our Labs
Start Your Free Trial

We have the longest and most in depth courses about cloud and engineering topics on the web. All of our training content is included with every membership.