Book description
Pro Vagrant teaches you how to effectively implement and optimize Vagrant in your everyday work environment. Master the creation and configuration of virtual 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 "works on my machine" excuse a relic of the past.
DevOps is mainstream best practice nowadays, and Vagrant sits firmly in the DevOps toolkit. This book will take you from basic usage and getting started, to provisioning with Shell, Puppet, and Chef. You will see how to use Vagrant in real-life scenarios, so that you can start to use Vagrant day-to-day in your work.
Author Wodimierz Gajda is a Vagrant expert and now brings his experience to you in Pro Vagrant. This is an indispensable book for anyone using Vagrant - add it to your library today.
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
-
Chapter 1 : Getting Started with Vagrant
- What Is Vagrant?
- Client/Server Paradigm and its Aftermath
- Traditional Approach to Setting up a Developer Environment
- Virtualization to the Rescue
- Enter the Vagrant
- Vagrant Rulez!
- Disadvantages of Vagrant
- Vagrant for Trainers, Instructors, and Teachers
- Installing the Software
- Basic Vagrant Configuration
- Documentation
- Summary
- In the Next Chapter, You’ll Learn . . .
- Reading List
- Test Yourself
-
Chapter 2 : Four Web Frameworks in Four Minutes
- Project 1: “Songs for kids” Written in AngularJS
- Project 2: “Songs for kids” Written in Django
- Project 3: “Songs for kids” Written in Ruby on Rails
- Project 4: “Songs for kids” Written in Symfony
- What Have You Achieved?
- Shared Folders
- Stopping VMs
- Summary
- In the Next Chapter, You’ll Learn . . .
- Reading List
- Test Yourself
- Exercises
-
Chapter 3 : The States of VM
- Before You Begin
- Getting the Source Code of the Example Application
- Vagrantfile
- Where Does the VM Image Come From?
- Booting the VM
- Files and Directories: Summary
- Guest OS States
- Vagrant Commands
- How to Start and Stop a VM
- Running “Songs for kids” in Sinatra
- Colliding Ports
- Removing the Box
- Summary
- In the Next Chapter You Will Learn . . .
- Reading List
- Test Yourself
- Exercises
-
Chapter 4 : Default Configuration and Security Settings of the Guest VM
- Atlas
- Initializing a New Project
- Security Concern #1
- Booting the Guest OS
- Downloading the ubuntu/trusty32 Base Box from Atlas
- Default Configuration of a VM
- Security Concern #2
- Communication with the Outside World
- Analysis of “Songs for kids” in AngularJS
- Working with SSH
- Working with Multiple Guests
- Security Concern #3
- Using the authorized_keys File for SSH Authorization
- Security Concern #4
- Reloading the Guest OS
- Summary
- In the Next Chapter, You Will Learn . . .
- Reading List
- Test Yourself
- Exercises
-
Chapter 5 : Your First Box
- The Task at Hand
- Choosing a Base Box and Initializing a New Project
- Installing the Necessary Software
- Generating a Box
- Listing, Installing, and Removing Boxes
- Using the Box
- Forwarding Ports
- Advantages of Boxing
- Serving Boxes over the Network
- Securing Your Boxes
- Repackaging Boxes
- Summary
- In the Next Chapter, You Will Learn . . .
- Reading List
- Test Yourself
- Exercises
-
Chapter 6 : Provisioning
- Provisioners
- Configuring Provisioning
- Multiple Provisioners
- When Does Provisioning Happen?
- Versioning Boxes with git
- Jekyll Box with the Shell Provisioner
- Using the Shell-Provisioned Box
- Annoying “not a tty” Problem
- Jekyll Box with the Puppet Provisioner
- Using a Puppet-Provisioned Box
- Jekyll Box with the Chef Provisioner
- Jekyll Box with the Ansible Provisioner
- Workflow
- Summary
- In the Next Chapter, You Will Learn . . .
- Reading List
- Test Yourself
- Exercises
-
Chapter 7 : Creating Boxes from Scratch
- Packer
- Installing Packer
- Building Boxes Using the chef/bento Project
- Using the Box Generated with chef/bento
- Building Boxes Using the boxcutter Project
- Using the Box Generated with the boxcutter Project
- How Does Packer Work?
- Customizing Boxes Generated with chef/bento
- VirtualBox Guest Additions
- Creating a Box Manually
- Timing
- Working with the Open Virtualization Format (OVF )
- Summary
- In the Next Chapter, You Will Learn . . .
- Reading List
- Test Yourself
- Exercises
- Chapter 8 : Configuring Virtual Machines
- Chapter 9 : One True Workflow
- Chapter 10 : Going Pro
- Index
Product information
- Title: Pro Vagrant
- Author(s):
- Release date: June 2015
- Publisher(s): Apress
- ISBN: 9781484200735
You might also like
book
Vagrant: Up and Running
Discover why Vagrant is a must-have tool for thousands of developers and ops engineers. This hands-on …
book
Hands-On DevOps with Vagrant
Use Vagrant to easily build complete development environments Key Features Implement DevOps with Vagrant effectively Integrate …
book
Vagrant Virtual Development Environment Cookbook
Over 35 hands-on recipes to help you master Vagrant, and create and manage virtual computational environments …
book
Docker in Action, Second Edition
Docker in Action, Second Edition teaches you the skills and knowledge you need to create, deploy, …