Creating Development Environments with Vagrant - Second Edition
eBook - ePub

Creating Development Environments with Vagrant - Second Edition

Michael Peacock

Condividi libro
  1. 156 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Creating Development Environments with Vagrant - Second Edition

Michael Peacock

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

About This Book

  • Get your projects up and running quickly and effortlessly by simulating complicated environments that can be easily shared with colleagues
  • Provision virtual machines using Puppet, Ansible, and Chef
  • A practical, hands-on guide that helps you learn how to create powerful and flexible virtual development environments

Who This Book Is For

If you are a developer who wants to have your development environment accurately reflect your live servers to tackle the ever-increasing complexity of web and software projects, this book is most certainly intended for you!

It's assumed that you know the basics of Linux systems in the context of web-based projects.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Creating Development Environments with Vagrant - Second Edition è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Creating Development Environments with Vagrant - Second Edition di Michael Peacock in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatique e Sciences générales de l'informatique. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Creating Development Environments with Vagrant Second Edition


Table of Contents

Creating Development Environments with Vagrant Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started with Vagrant
Introducing Vagrant
Requirements for Vagrant
Getting started
Installing VirtualBox
Installing Vagrant
Summary
2. Managing Vagrant Boxes and Projects
Creating our first Vagrant project
Managing Vagrant-controlled guest machines
Powering up a Vagrant-controlled virtual machine
Suspending a virtual machine
Resuming a virtual machine
Shutting down a virtual machine
Starting from scratch
Updating based on Vagrantfile changes
Connecting to the virtual machine over SSH
Managing integration between host and guest machines
Port forwarding
Synced folders
Networking
Autorunning commands
Managing Vagrant boxes
Adding Vagrant boxes
Listing Vagrant boxes
Checking for updates
Removing Vagrant boxes
Repackaging a Vagrant box
Updating the current environment's box
Too many Vagrants!
Summary
3. Provisioning with Puppet
Provisioning
Puppet
Creating modules and manifests with Puppet
Puppet classes
Default Puppet manifests
Resources
Resource requirements
Resource execution ordering
The notify, subscribe, and refreshonly parameters
Executing resources in stages
Installing software
Updating our package manager
Installing the nginx package
Running the nginx service
File management
Copying a file
Creating a symlink
Creating folders
Creating multiple folders in one go
Cron management
Running commands
Managing users and groups
Creating groups
Creating users
Updating the sudoers file
Creating configurable classes
Puppet modules
Using Puppet to provision servers
Summary
4. Using Ansible
Understanding Ansible
Installing Ansible
Creating an inventory
Creating Ansible playbooks
Modules – what Ansible can do
Installing software
Updating our package manager
Installing the nginx package
Running the nginx service
Understanding file management
Copying a file
Creating a symlink
Creating folders
Managing cron
Running commands
Managing users and groups
Creating groups
Creating users
Using Ansible roles
Using Ansible to provision servers
Summary
5. Using Chef
Knowing about Chef
Creating cookbooks and recipes with Chef
Resources – what Chef can do
Installing software
Updating our package manager
Installing the nginx package
Running the nginx service
Understanding file management
Copying a file
Creating a symlink
Creating folders
Creating multiple folders in a single process with looping
Managing cron
Running commands
Managing users and groups
Creating groups
Creating users
Updating the sudoers file
Knowing common resource functionalities
Using Chef cookbooks
Using Chef to provision servers
Summary
6. Provisioning Vagrant Machines with Puppet, Ansible, and Chef
Provisioning within Vagrant
Provisioning with Puppet on Vagrant
Using Puppet in standalone mode
Puppet provisioning in action
Using Puppet in client/server mode
Provisioning with Ansible on Vagrant
Provisioning with Chef on Vagrant
Using Chef-solo
Using Chef in client/server mode
Provisioning with SSH – a recap
Using multiple provisioners on a single project
Overriding provisioning via the command line
Summary
7. Working with Multiple Machines
Using multiple machines with Vagrant
Defining multiple virtual machines
Connecting to the multiple virtual machines over SSH
Networking the multiple virtual machines
Provisioning the machines separately
Destroying a multimachine project
Summary
8. Creating Your Own Box
Getting started
Preparing the VirtualBox machine
VirtualBox Guest Additions
Vagrant authentication
Vagrant user and admin group
The sudoers file
Insecure public/private key pair
Provisioners
Installing Puppet
Installing Chef
Cleaning up the VM
Export
Summary
9. HashiCorp Atlas
Discovering boxes
Installing new boxes
Updating existing boxes
Checking for outdated boxes
Distributing boxes
Sharing and connecting with Atlas
Logging Vagrant into Vagrant Cloud
Sharing a Vagrant virtual machine over HTTP(S)
Sharing and connecting to a Vagrant virtual machine
Summary
A. A Sample LEMP Stack
Creating the Vagrant project
Creating the Puppet manifests
Installing Nginx
Installing PHP
Installing the MySQL module
Default manifest
Installing Nginx and PHP
Hostname configuration
E-mail sending services
MySQL configuration
Launching the virtual machine
Summary
Index

Creating Development Environments with Vagrant Second Edition

Copyright © 2015 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, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or...

Indice dei contenuti