Chapter 3. Provisioning a Vagrant Environment

In this chapter, we will cover:

  • Running basic shell commands
  • Executing shell scripts in a Vagrantfile
  • Provisioning with external shell scripts

Introduction

Starting a basic operating system environment from a Vagrantfile can be useful, but the real power of Vagrant is the ability to not only define operating parameters, but also to provision environments in a repeatable way. Vagrant implements a number of methods to install and configure software wherein each different method is referred to as a provisioner.

This chapter introduces and expands on the basic concept of provisioning a Vagrant environment. In the previous chapters, we have seen how to launch and configure basic environments, some of which included ...

Get Vagrant Virtual Development Environment Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.