Slide 1
Most trusted JOB oriented professional program
DevOps Certified Professional (DCP)

Take your first step into the world of DevOps with this course, which will help you to learn about the methodologies and tools used to develop, deploy, and operate high-quality software.

Slide 2
DevOps to DevSecOps – Learn the evolution
DevSecOps Certified Professional (DSOCP)

Learn to automate security into a fast-paced DevOps environment using various open-source tools and scripts.

Slide 2
Get certified in the new tech skill to rule the industry
Site Reliability Engineering (SRE) Certified Professional

A method of measuring and achieving reliability through engineering and operations work – developed by Google to manage services.

Slide 2
Master the art of DevOps
Master in DevOps Engineering (MDE)

Get enrolled for the most advanced and only course in the WORLD which can make you an expert and proficient Architect in DevOps, DevSecOps and Site Reliability Engineering (SRE) principles together.

Slide 2
Gain expertise and certified yourself
Azure DevOps Solutions Expert

Learn about the DevOps services available on Azure and how you can use them to make your workflow more efficient.

Slide 3
Learn and get certified
AWS Certified DevOps Professional

Learn about the DevOps services offered by AWS and how you can use them to make your workflow more efficient.

previous arrow
next arrow

How to test Chef recipes/cookbooks on your workstation with VAGRANT and VirtualBox using Test Kitchen

Spread the Knowledge

Install Test Kitchen, VAGRANT and VirtualBox:

Chef Test Kitchen: Test Kitchen is a testing tool that can execute your CHEF recipes on one or more platforms in isolation. A driver plugin architecture is used which lets you run your recipes on various cloud providers and virtualization technologies.
$ gem install test-kitchen

Virtualbox: VirtualBox is powerful Cross-platform Virtualization Software for x86-based systems. “Cross-platform” means that it can be installed on Windows, Linux, Mac OS X and Solaris x86 computers.
$ sudo apt-get install virtualbox

VAGRANT: VAGRANT not only creates virtual machines, it mainly automates the work of setting up development environment.
$ sudo apt-get install vagrant

Step 1 – You can create kitchen.yml file in the chef-repo directory (as shown below) or in specific cookbook directory.
$ kitchen init

Step 2 – Add the below mentioned content to the kitchen.yml file, in this file you can configure basic details like driver name (vagrant or docker), provisioner, base OS image, memory and recipe name.

Step 3 – To create VAGRANT machine use below-mentioned command:
$ kitchen list
$ kitchen create

Step 4 – To execute recipe on the VAGRANT virtual machine, use the below-mentioned command:
$ kitchen converge

Step 5 – To login to the VAGRANT vm, use kitchen login command as shown below:
$ kitchen login

Step 6 – And after testing if you want to delete the setup i.e. vagrant vm, use the command mentioned-below:
$ kitchen destroy

Rajesh Kumar