Vagrant is a tool for quickly deploying Virtual Machines locally. You can use Vagrant with VM platforms such as VirtualBox, KVM, AWS, and even VMware. Vagrant's images are called boxes. You may build your own boxes or download boxes from the public catalog of available boxes. Many of the popular Linux distributions are available. In this section, I'll show you how I built the machines used to test the code used in this book.
First, you'll need to install Vagrant. Vagrant is available for Windows, macOS, and Linux. You may download it from https://www.vagrantup.com/downloads.html. With Vagrant installed, select a working directory. In my examples, I've used the Puppet Git repository to hold my Vagrant configuration information. To ensure our Vagrant hosts can communicate properly with each other, we'll use the vagrant-hosts
plugin. Install that as follows:
[thomas@mylaptop: ~] $ vagrant plugin install vagrant-hosts Installing the 'vagrant...