Creating Development Environments with Vagrant - Second Edition
eBook - ePub

Creating Development Environments with Vagrant - Second Edition

Michael Peacock

Partager le livre
  1. 156 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Creating Development Environments with Vagrant - Second Edition

Michael Peacock

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

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.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Creating Development Environments with Vagrant - Second Edition est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Creating Development Environments with Vagrant - Second Edition par Michael Peacock en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatique et Sciences gĂ©nĂ©rales de l'informatique. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2015
ISBN
9781784391638

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...

Table des matiĂšres