Creating Development Environments with Vagrant

Improving your efficiency as a developer, programmer, or coder is the purpose of this book. It takes you through the steps one by one to help you set up and implement virtual development environments with Vagrant.

Creating Development Environments with Vagrant

Starting
Michael Peacock

Improving your efficiency as a developer, programmer, or coder is the purpose of this book. It takes you through the steps one by one to help you set up and implement virtual development environments with Vagrant.
$19.99
$32.99
RRP $19.99
RRP $32.99
eBook
Print + eBook
$12.99 p/month

Want this title & more? Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.
+ Collection
Free sample

Book Details

ISBN 139781849519182
Paperback118 pages

About This Book

  • Provision virtual machines using Puppet and Chef
  • Replicate multi-server environments locally
  • Set up a virtual LAMP development server

Who This Book Is For

"Creating Development Environments with Vagrant" is for developers, programmers, and coders who want to maintain multiple projects within their own environment. It is also aimed at companies who are looking to deploy ready-to-go development solutions for new staff or even existing staff moving to new projects, and to enforce a consistent and portable virtual development environment that is easy to create and quick to set up.

Table of Contents

Chapter 1: Getting Started with Vagrant
Requirements for Vagrant
Getting installed
Summary
Chapter 2: Managing Vagrant Boxes and Projects
Creating Vagrant projects
Managing Vagrant boxes
Controlling guest machines
Integration between the host and the guest
Auto-running commands
Summary
Chapter 3: Provisioning with Puppet
Provisioning
About Puppet
Summary
Chapter 4: Provisioning with Chef
Knowing about Chef
Creating cookbooks and recipes with Chef
Summary
Chapter 5: Provisioning with Vagrant using Puppet and Chef
Provisioning within Vagrant
Provisioning with Puppet on Vagrant
Provisioning with Chef on Vagrant
Other built-in provisioners
Using multiple provisioners on a single project
Overriding provisioning via the command line
Summary
Chapter 6: Working with Multiple Machines
Using multiple machines with Vagrant
Connecting to multiple virtual machines over SSH
Destroying a multi-machine project
Summary
Chapter 7: Creating Your Own Box
Getting started
Preparing the VirtualBox machine
VirtualBox Guest Additions
Vagrant authentication
Provisioners
Cleanup
Export
Summary

What You Will Learn

  • Create Vagrant projects
  • Sync folders with your virtual development environment
  • Integrate your own machine with the virtual machine
  • Manage provisioning the server configuration with Puppet and Chef
  • Set up multiple virtual machines for a single project
  • Configure your virtual environment on your network
  • Build your own base box for Vagrant
  • Import and manage operating system images in Vagrant
  • Get to grips with good practices for developing projects on your local machine
  • Set up a simple LAMP server for a Vagrant project

In Detail

Vagrant is a tool for building complete development environments. With an easy-to-use workflow and focus on automation, Vagrant lowers development environment setup time, increases development/production parity, and makes the "it works on my machine" excuse a thing of the past.

"Creating Development Environments with Vagrant" is a practical, hands-on guide that walks you through the functionality of Vagrant, Puppet, and Chef to create powerful and flexible virtual development environments. Create your own virtualization environments containing configurations for different projects so that you can simulate complicated environments that can be easily shared with colleagues to get your projects up and running quickly and effortlessly.

"Creating Development Environments with Vagrant" starts with an introduction to virtualization and the concepts behind it, why it’s useful, and an overview of the architecture of Vagrant. We will learn to install Vagrant and get to know its prerequisites. Covering provisioning scripts with Puppet and Chef, learning to use them independently as well as with Vagrant to create a powerful combination.

If you want to locally test your projects, juggle multiple projects running on different versions of software, easily share technology requirement changes with colleagues, and, most importantly, want to perform all these tasks efficiently, then this book is for you.

"Creating Development Environments with Vagrant" will take you from a virtualization novice to running all of your projects across your team in robust, isolated virtual development environments.

Authors

Table of Contents

Chapter 1: Getting Started with Vagrant
Requirements for Vagrant
Getting installed
Summary
Chapter 2: Managing Vagrant Boxes and Projects
Creating Vagrant projects
Managing Vagrant boxes
Controlling guest machines
Integration between the host and the guest
Auto-running commands
Summary
Chapter 3: Provisioning with Puppet
Provisioning
About Puppet
Summary
Chapter 4: Provisioning with Chef
Knowing about Chef
Creating cookbooks and recipes with Chef
Summary
Chapter 5: Provisioning with Vagrant using Puppet and Chef
Provisioning within Vagrant
Provisioning with Puppet on Vagrant
Provisioning with Chef on Vagrant
Other built-in provisioners
Using multiple provisioners on a single project
Overriding provisioning via the command line
Summary
Chapter 6: Working with Multiple Machines
Using multiple machines with Vagrant
Connecting to multiple virtual machines over SSH
Destroying a multi-machine project
Summary
Chapter 7: Creating Your Own Box
Getting started
Preparing the VirtualBox machine
VirtualBox Guest Additions
Vagrant authentication
Provisioners
Cleanup
Export
Summary

Book Details

ISBN 139781849519182
Paperback118 pages
Read More

Recommended for You

Vagrant Virtual Development Environment Cookbook
$ 26.99
Creating Development Environments with Vagrant - Second Edition
$ 13.50
Chef Infrastructure Automation Cookbook - Second Edition
$ 28.80
Configuration Management with Chef-Solo
$ 13.99
Performance Testing with JMeter - Second Edition
$ 31.99