Book Image

Vagrant Virtual Development Environment Cookbook

Book Image

Vagrant Virtual Development Environment Cookbook

Overview of this book

Table of Contents (17 chapters)
Vagrant Virtual Development Environment Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Defining a single machine Vagrant environment


The most basic mode of defining a Vagrant is the definition of a single machine environment. This type of environment defines a single virtual machine that is managed with a simple vagrant up command. In the first chapter, all of the Vagrant machines defined were single machine environments. In this recipe, we'll take a closer look at how these machines are defined.

How to do it...

There are two ways we can define single machine environments. A simple environment with global configurations can be used to create a single environment, or a defined environment can be used as the start of a multimachine environment. This chapter will focus on single environments, but you might find that defining virtual machines is a more flexible configuration.

Simple Vagrant environment

  1. Initialize a Vagrant environment. This is very similar to how we initialized environments in Chapter 1, Setting Up Your Environment, in this case, start with an empty Vagrantfile by...