Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Vagrant Virtual Development Environment Cookbook

You're reading from   Vagrant Virtual Development Environment Cookbook 35 solutions to help you utilize virtualization with Vagrant more effectively – learn how to develop and manage Vagrant in the cloud to improve collaboration

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784393748
Length 250 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Chad O Thompson Chad O Thompson
Author Profile Icon Chad O Thompson
Chad O Thompson
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Setting Up Your Environment FREE CHAPTER 2. Single Machine Environments 3. Provisioning a Vagrant Environment 4. Provisioning with Configuration Management Tools 5. Networked Vagrant Environments 6. Vagrant in the Cloud 7. Packaging Vagrant Boxes A. Vagrant Plugins B. A Puppet Development Environment C. Using Docker with Vagrant 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image