Book Image

Configuration Management with Chef-Solo

By : Naveed ur Rahman
Book Image

Configuration Management with Chef-Solo

By: Naveed ur Rahman

Overview of this book

Table of Contents (13 chapters)

Executing recipes with Vagrant


Our new machine is ready. Now, we can install Chef-Solo on it, as we discussed in the previous chapter. Even though it is a tedious task, we will cover it smoothly using Vagrant.

Vagrant allows us to automate this process with Vagrantfile. We have already created a Vagrantfile. Now, let's have a look at the file and execute a recipe with it.

The main object of the Vagrantfile is to describe the precise sort of machine needed for a particular task and to explain how to provide configurations and a set of tasks to a new machine. One project contains one Vagrantfile that has the footprint of a new machine.

Here, you might be thinking if Vagrant provides us with the basic footprint, why do we need other configuration tools to set up the machine? The main difference is Vagrant can contain only abstract-level tasks, and all activities can be performed in a box, but Chef-Solo has the ability to manage the whole machine. Also, Vagrant is designed to handle virtual machines...