- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

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.

Lab 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
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.