Hands-On DevOps with Vagrant
Implement end-to-end DevOps and infrastructure management using Vagrant
Alex Braunton
BIRMINGHAM - MUMBAI
Hands-On DevOps with Vagrant
Copyright 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Gebin George
Acquisition Editor: Rohit Rajkumar
Content Development Editor: Dattatraya More
Technical Editor: Sayali Thanekar, Cymon Pereira, Nirbhaya Shaji
Copy Editor: Safis Editing
Project Coordinator: Kinjal Bari
Proofreader: Safis Editing
Indexer: Priyanka Dhadke
Graphics: Jisha Chirayil
Production Coordinator: Jyoti Chauhan
First published: October 2018
Production reference: 1151018
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78913-805-4
www.packtpub.com
To my beautiful wife, Francesca,
and wonderful daughter, Florence;
without you both,
I would be nothing.
Thank you.
Alex Braunton
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
Packt.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details.
At www.packt.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the author
Alex Braunton is a web developer focusing on the LAMP stack by day and a technical tinkerer by night. He is passionate about all technological things and enjoys trying to build robots and home automation systems with his Raspberry Pi collection. Currently, he is focusing on sharpening his DevOps knowledge and experimenting with a range of technologies, such as serverless, virtual reality, and GraphQL. He also has a growing bonsai collection and constantly bores his wife and family about the art and history of bonsai.
I'd like to start by thanking my wife, Francesca. Without her support, this book would not have been possible.
I'd like to thank the incredible team at Packt, who have guided me along every step of this book and have been excellent - especially Rohit Rajkumar and Dattatraya More.
I'd like to thank Mitchell Hashimoto/HashiCorp for creating such a fantastic piece of software, Vagrant. Your ideas and code have truly inspired me.
About the reviewer
Micha Woonkiewicz started by participating in the home meteo station network (involving an unbreakable DS1820 connected by a 1-Wire converter to an RS-232 interface in an Optiplex G1, operating under the control of OpenBSD) before he even got his driving license. He gained his first commercial experience as a systems engineer in both the public and private sectors, he improved the infrastructure at an investment bank and taught developers how to use it. He runs a consulting company with the goal of providing expertise on IT, Telco, and security technologies. He can be reached at michal@wolonkiewi.cz .
Special thanks to my family my wife, Ada, and my son, Wojciech thanks to whom I am stronger and more persistent every day.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Table of Contents
Preface
Vagrant is an open source tool that allows you to programatically create and manage virtual environments. Vagrant's main focus is on creating development environments that can be shared between teams all over the world. It removes the "works fine on my machine" problem and allows anyone with the Vagrantfile configuration to create an exact copy of the original machine.
Vagrant was created and is maintained by Mitchell Hashimoto and HashiCorp with a continuous stream of support and updates. It's a piece of software that has been going from strength to strength since its creation in 2010.
Who this book is for
In this book, we'll cover many aspects of Vagrant. The book can be used by beginners who have very little or no experience with Vagrant. We'll cover how to install Vagrant and all of the basic knowledge needed to get up and running.
This book can also be used by more advanced users who wish to better understand and utilize Vagrant. We'll cover the available commands, networking, multi-machine, and provisioning with configuration management tools such as Chef and Ansible.
Whatever level you are at, this book will teach you something new or help reinforce your knowledge and offer tips and tricks.
What this book covers
, Introduction , acts as a great introduction to the world of Vagrant. It will help create a foundation of knowledge to guide you through the book. You will learn what Vagrant is, the benefits of Vagrant, what VirtualBox is, and what DevOps is. You'll also learn how Vagrant fits into the DevOps landscape, how it can be used as a DevOps tool, and take a look at other pieces of software.
) to download, install, and verify the software, once it has been installed.
, Command Line-Interface - Vagrant Commands