- Lab
- A Cloud Guru
Chef Compliance Waivers
This hands-on lab will test your ability to create an InSpec test and your ability to create a waiver file to exclude a specific control from testing. You will need to show a test failure, then mitigate that test using your waiver file.
Path Info
Table of Contents
-
Challenge
Log In to the Provided Server
- Log in to the server as
cloud_user
with the provided password . The server has Chef Workstation installed.
NOTE: Server setup may take several minutes after the lab has started. Once server configuration has been completed, a file named
SERVER-READY
is generated. - Log in to the server as
-
Challenge
Create and Edit a Chef InSpec Test Profile Named folder-check
- Using the appropriate command, create an InSpec test profile named
folder-check
. - Accept necessary licenses.
- Move to the test profile.
- Find the appropriate InSpec test file and edit it to test if the
/tmp2
folder exists. - Run the InSpec test you just created. It should produce an error.
- Using the appropriate command, create an InSpec test profile named
-
Challenge
Create a Waiver File to Exclude /tmp2 from Testing
- Create a waiver file to exclude the test for
/tmp2
. - Run the test again and the error should no longer exist, since the failing control has been excluded.
- Create a waiver file to exclude the test for
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.