Infrastructure as Code (IAC) Cookbook
eBook - ePub

Infrastructure as Code (IAC) Cookbook

Stephane Jourdan, Pierre Pomes

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

Infrastructure as Code (IAC) Cookbook

Stephane Jourdan, Pierre Pomes

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

Over 90 practical, actionable recipes to automate, test, and manage your infrastructure quickly and effectivelyAbout This Book• Bring down your delivery timeline from days to hours by treating your server configurations and VMs as code, just like you would with software code.• Take your existing knowledge and skill set with your existing tools (Puppet, Chef, or Docker) to the next level and solve IT infrastructure challenges.• Use practical recipes to use code to provision and deploy servers and applications and have greater control of your infrastructure.Who This Book Is ForThis book is for DevOps engineers and developers working in cross-functional teams or operations and would now switch to IAC to manage complex infrastructures.What You Will Learn• Provision local and remote development environments with Vagrant• Automate production infrastructures with Terraform, Ansible and Cloud-init on AWS, OpenStack, Google Cloud, Digital Ocean, and more• Manage and test automated systems using Chef and Puppet• Build, ship, and debug optimized Docker containers• Explore the best practices to automate and test everything from cloud infrastructures to operating system configurationIn DetailInfrastructure as Code (IAC) is a key aspect of the DevOps movement, and this book will show you how to transform the way you work with your infrastructure—by treating it as software.This book is dedicated to helping you discover the essentials of infrastructure automation and its related practices; the over 90 organized practical solutions will demonstrate how to work with some of the very best tools and cloud solutions.You will learn how to deploy repeatable infrastructures and services on AWS, OpenStack, Google Cloud, and Digital Ocean. You will see both Ansible and Terraform in action, manipulate the best bits from cloud-init to easily bootstrap instances, and simulate consistent environments locally or remotely using Vagrant. You will discover how to automate and test a range of system tasks using Chef or Puppet. You will also build, test, and debug various Docker containers having developers' interests in mind.This book will help you to use the right tools, techniques, and approaches to deliver working solutions for today's modern infrastructure challenges.Style and approachThis is a recipe-based book that allows you to venture into some of the most cutting-edge practices and techniques about IAC and solve immediate problems when trying to implement them.

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.
Infrastructure as Code (IAC) Cookbook è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Infrastructure as Code (IAC) Cookbook di Stephane Jourdan, Pierre Pomes in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatik e Systemverwaltung. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2017
ISBN
9781786461292
Edizione
1
Argomento
Informatik

Infrastructure as Code (IAC) Cookbook


Table of Contents

Infrastructure as Code (IAC) Cookbook
Credits
About the Authors
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Vagrant Development Environments
Introduction
Adding an Ubuntu Xenial (16.04 LTS) Vagrant box
Getting ready
How to do it…
How it works…
There's more…
Using a disposable Ubuntu Xenial (16.04) in seconds
Getting ready
How to do it…
How it works…
Enabling VirtualBox Guest Additions in Vagrant
Getting ready
How to do it…
How it works…
There's more…
Using a disposable CentOS 7.x with VMware in seconds
Getting ready
How to do it…
How it works…
There's more…
See also
Extending the VMware VM capabilities
Getting ready
How to do it…
How it works…
There's more…
Enabling multiprovider Vagrant environments
Getting ready
How to do it…
How it works…
Customizing a Vagrant VM
Getting ready
How to do it…
Set the hostname
Disable new box version check at startup
Use a specific box version
Display an informational message to the user
Specify a minimum Vagrant version
Using Docker with Vagrant
Getting ready
How to do it…
Using NGINX Docker container through Vagrant
Exposing Docker ports in Vagrant
Sharing folders with Docker through Vagrant
There's more…
Using Docker in Vagrant for a Ghost blog behind NGINX
Getting ready
How to do it…
There's more…
A Docker Compose equivalent
Using Vagrant remotely with AWS EC2 and Docker
Getting ready
How to do it…
Simulating dynamic multiple host networking
Getting ready
How to do it…
There's more…
Speed up deployments with linked clones
Using named NAT networks
Simulating a networked three-tier architecture app with Vagrant
Getting ready
How to do it…
Tier 3 – the database
Tier 2: the application servers
The Node.js application
Tier 1: the NGINX reverse proxy
Showing your work on the LAN while working with Laravel
Getting ready
How to do it…
A sample NGINX configuration for Laravel
Simple shell provisioning
Enable provisioning
Shared folder
Public LAN Networking
There's more…
Sharing access to your Vagrant environment with the world
Getting ready
How to do it…
Provisioning
Starting Ghost engine
Sharing access
HTTP
SSH
Simulating Chef upgrades using Vagrant
Getting ready
How to do it…
Vagrant Omnibus Chef plugin
A sample Chef recipe
Vagrant and Chef integration
Testing the Chef version update
There's more…
Controlling default Vagrant VMs
Berkshelf and Vagrant
Testing with Test Kitchen
Using Ansible with Vagrant to create a Docker host
Getting ready
How to do it…
A simple Ansible Docker playbook for Vagrant
Apply Ansible from Vagrant
There's more…
Using Docker containers on CoreOS with Vagrant
Getting ready
How to do it…
There's more…
2. Provisioning IaaS with Terraform
Introduction
Configuring the Terraform AWS provider
Getting ready
How to do it…
How it works…
There's more…
Creating and using an SSH key pair to use on AWS
Getting ready
How to do it…
How it works…
There's more…
Using AWS security groups with Terraform
Getting ready
How to do it…
There's more…
Creating an Ubuntu EC2 instance with Terraform
Getting ready
How to do it…
Scaling the number of instances
There's more…
Generating meaningful outputs with Terraform
Getting ready
How to do it…
There's more…
Using contextual defaults with Terraform
Getting ready
How to do it…
There's more…
Managing S3 storage with Terraform
Getting ready
How to do it…
There's more…
Creating private Docker repositories with Terraform
Getting ready
How to do it…
Creating a PostgreSQL RDS database with Terraform
Getting ready
How to do it…
There's more…
Enabling CloudWatch Logs for Docker with Terraform
Getting ready
How to do it…
Amazon CloudWatch Logs Docker logging driver
Managing IAM users with Terraform
Getting ready
How to do it…
An IAM user for S3 access
Testing the restrictions
An IAM user for EC2 in read-only
An application user IAM – CloudWatch Logs
There's more…
3. Going Further with Terraform
Introduction
Handling different environments with Terraform
Getting ready
How to do it…
Keeping the tfstate isolated
Setting the production flag
Provisioning a CentOS 7 EC2 instance with Chef using Terraform
Getting ready
How to do it…
Creating the EC2 inst...

Indice dei contenuti