Infrastructure as Code (IAC) Cookbook
eBook - ePub

Infrastructure as Code (IAC) Cookbook

Stephane Jourdan, Pierre Pomes

Share book
  1. 440 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Infrastructure as Code (IAC) Cookbook

Stephane Jourdan, Pierre Pomes

Book details
Book preview
Table of contents
Citations

About This Book

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.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Infrastructure as Code (IAC) Cookbook an online PDF/ePUB?
Yes, you can access Infrastructure as Code (IAC) Cookbook by Stephane Jourdan, Pierre Pomes in PDF and/or ePUB format, as well as other popular books in Informatik & Systemverwaltung. We have over one million books available in our catalogue for you to explore.

Information

Year
2017
ISBN
9781786461292
Edition
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 of contents