Vagrant CookBook
Vagrant CookBook
Vagrant CookBook

This book is 100% complete

Completed on 2014-09-16

About the Book

Portable environments for effective development

How many times did you hear the excuse "works on my machine"? With Vagrant, this stays in the past. Your environments will be exactly the way you want them to be, targeting specific projects for different needs. As easy as cloning a repository and running "vagrant up".

This book covers from basic to advanced concepts on Vagrant, including important ProTips to improve your Vagrant projects and avoid common mistakes. The book was updated to cover the new features on Vagrant 1.5 and 1.6.


Vagrant Cookbook comes with quick guides to the 3 most used Vagrant provisioners: Puppet, Ansible and Chef. Following the guide, a practical example will show you how to provision a basic web server with Nginx + PHP5-FPM (PHP 5.5+). Choose the one you like best!

Recipes for most common tasks

The book also includes useful recipes for common tasks, writen in Ansible, Puppet and Chef.

Code Samples

The complete provisioner examples are available for free on GitHub.


Vagrant Cookbook targets beginner to intermediate users, also serving as a quick getting-started guide for Ansible, Puppet and Chef.


Thanks to the LeanPub platform, is really easy to release updates and notify my readers. Obviously at no extra cost. For any new content / corrections, you will be notified to download the newest version.


Any feedback that can help making this book better is highly appreciated. If you find errors, or if you have suggestions, please contact me.

Printed Version

If you prefer a printed version (paperback) rather than an ebook, you can get it here:

Bundles that include this book

Build APIs You Won't Hate
Vagrant CookBook
2 Books
Regular Price
Bundle Price
Ansible for DevOps
Vagrant CookBook
2 Books
Regular Price
Bundle Price
Ansible for AWS
Vagrant CookBook
2 Books
Regular Price
Bundle Price

About the Author

Erika Heidi
Erika Heidi

As a Linux user since that time when you had to run startx to get any graphic experience, Erika Heidi started her carreer as SysAdmin, changing her focus to development after some years and embracing PHP as her main language - in 2003. Although development is her passion, she still likes the operational stuff, which turns to be a nice combination for devops.

Causes Supported

Electronic Frontier Foundation

Defending your civil liberties in a digital world.

Based in San Francisco, EFF is a donor-supported membership organization working to protect fundamental rights regardless of technology.

From the Internet to the iPod, technologies are transforming our society and empowering us as speakers, citizens, creators, and consumers. When our freedoms in the networked world come under attack, the Electronic Frontier Foundation (EFF) is the first line of defense. EFF broke new ground when it was founded in 1990—well before the Internet was on most people's radar—and continues to confront cutting-edge issues defending free speech, privacy, innovation, and consumer rights today. From the beginning, EFF has championed the public interest in every critical battle affecting digital rights.

The Leanpub Unconditional, No Risk, 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms

Write and Publish on Leanpub

Authors and publishers use Leanpub to publish amazing in-progress and completed ebooks, just like this one. You can use Leanpub to write, publish and sell your book as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub