Infrastructure as Code (IAC) Cookbook
eBook - ePub

Infrastructure as Code (IAC) Cookbook

Stephane Jourdan, Pierre Pomes

Compartir libro
  1. 440 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Infrastructure as Code (IAC) Cookbook

Stephane Jourdan, Pierre Pomes

Detalles del libro
Vista previa del libro
Índice
Citas

Información del 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.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Infrastructure as Code (IAC) Cookbook un PDF/ePUB en línea?
Sí, puedes acceder a Infrastructure as Code (IAC) Cookbook de Stephane Jourdan, Pierre Pomes en formato PDF o ePUB, así como a otros libros populares de Informatik y Systemverwaltung. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2017
ISBN
9781786461292
Edición
1
Categoría
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...

Índice