Book Image

Hands-On DevOps with Vagrant

By : Alex Braunton
Book Image

Hands-On DevOps with Vagrant

By: Alex Braunton

Overview of this book

Hands-On DevOps with Vagrant teaches you how to use Vagrant as a powerful DevOps tool and gives an overview of how it fits into the DevOps landscape. You will learn how to install VirtualBox and Vagrant in Windows, macOS, and Linux. You will then move on to understanding Vagrant commands, discovering its boxes and Vagrant Cloud. After getting to grips with the basics, the next set of chapters helps you to understand how to configure Vagrant, along with networking. You will explore multimachine, followed by studying how to create multiple environments and the communication between them. In addition to this, you will cover concepts such as Vagrant plugins and file syncing. The last set of chapters provides insights into provisioning shell scripts, also guiding you in how to use Vagrant with configuration management tools such as Chef, Ansible, Docker, Puppet, and Salt. By the end of this book, you will have grasped Vagrant’s features and how to use them for your benefit with the help of tips and tricks.
Table of Contents (21 chapters)
Title Page
Dedication
Packt Upsell
Contributors
Preface
Index

Puppet apply and Puppet agent


In this section, we will learn more about the two Puppet provisioning options available in Vagrant—puppet apply and puppet agent. In the following section, we will use both of these options to provision our own Vagrant machine.

Puppet apply

Using the Puppet apply option to provision a Vagrant machine allows you to use Puppet without the need for a Puppet master. It works by calling the puppet apply command on the guest machine. This can be useful for testing Puppet configurations if you do not have a Puppet master or you just need to get up and running quickly.

 

 

Options

There are 14 different options available when using Puppet apply in Vagrant. These options are to be applied in your Vagrantfile and can help give you more control over the Puppet provisioner:

  • binary_path:

Type: string

Description: This is a path on the guest to the Puppet's bin directory.

  • facter:

Typehash

Description: This is a hash of available facter variables (also know as facts).

  • hiera_config_path...