Infrastructure as Code (IAC) Cookbook
eBook - ePub

Infrastructure as Code (IAC) Cookbook

Stephane Jourdan, Pierre Pomes

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

Infrastructure as Code (IAC) Cookbook

Stephane Jourdan, Pierre Pomes

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

À propos de ce livre

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.

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 Infrastructure as Code (IAC) Cookbook est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Infrastructure as Code (IAC) Cookbook par Stephane Jourdan, Pierre Pomes en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatik et Systemverwaltung. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2017
ISBN
9781786461292
Édition
1

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

Table des matiĂšres