Book description
Orchestrate your cloud infrastructure
About This Book
- Recipe-based approach to install and configure cloud resources using Ansible
- Covers various cloud-related modules and their functionalities
- Includes deployment of a sample application to the cloud resources that we create
- Learn the best possible way to manage and automate your cloud infrastructure
Who This Book Is For
If you are a system administrator, infrastructure engineer, or a DevOps engineer who wants to obtain practical knowledge about Ansible and its cloud deliverables, then this book is for you. Recipes in this book are designed for people who would like to manage their cloud infrastructures efficiently using Ansible, which is regarded as one of the best tools for cloud management and automation.
What You Will Learn
- Use Ansible Vault to protect secrets
- Understand how Ansible modules interact with cloud providers to manage resources
- Build cloud-based resources for your application
- Create resources beyond simple virtual machines
- Write tasks that can be reused to create resources multiple times
- Work with self-hosted clouds such as OpenStack and Docker
- Deploy a multi-tier application on various cloud providers
In Detail
Ansible has a large collection of inbuilt modules to manage various cloud resources. The book begins with the concepts needed to safeguard your credentials and explain how you interact with cloud providers to manage resources. Each chapter begins with an introduction and prerequisites to use the right modules to manage a given cloud provider. Learn about Amazon Web Services, Google Cloud, Microsoft Azure, and other providers. Each chapter shows you how to create basic computing resources, which you can then use to deploy an application. Finally, you will be able to deploy a sample application to demonstrate various usage patterns and utilities of resources.
Style and approach
This book will help readers get started with Ansible cloud modules. It has code snippets and diagrams along with real world examples that will help you move ahead easily. Using real world scenarios, you will learn to deploy an application to cloud resources.
Table of contents
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributors
- Preface
- Getting Started with Ansible and Cloud Management
-
Using Ansible to Manage AWS EC2
- Introduction
- Preparing Ansible to work with AWS
- Creating and managing a VPC
- Creating and managing security groups
- Creating EC2 instances
- Creating and assigning Elastic IPs
- Attaching volumes to instances
- Creating an Amazon Machine Image
- Creating an Elastic Load Balancer and attaching to EC2 instances
- Creating auto scaling groups
- Deploying the phonebook application
- Managing Amazon Web Services with Ansible
-
Exploring Google Cloud Platform with Ansible
- Introduction
- Preparing to work with Google Cloud Platform
- Creating GCE instances
- Attaching persistent disks
- Creating snapshots for backup
- Tagging an instance
- Managing network and firewall rules
- Managing load balancer
- Managing GCE images
- Creating instance templates
- Creating managed instance groups
- Managing objects in Google Cloud Storage
- Creating a Cloud SQL instance (without Ansible module)
- Using dynamic inventory
- Deploying the phonebook application
-
Building Infrastructure with Microsoft Azure and Ansible
- Introduction
- Preparing Ansible to work with Azure
- Creating an Azure virtual machine
- Managing network interfaces
- Working with public IP addresses
- Using public IP addresses with network interfaces and virtual machines
- Managing an Azure network security group
- Working with Azure Blob storage
- Using a dynamic inventory
- Deploying a sample application
- Working with DigitalOcean and Ansible
- Running Containers with Docker and Ansible
-
Diving into OpenStack with Ansible
- Introduction
- Preparing Ansible to work with OpenStack
- Adding a keypair
- Managing security groups
- Managing network resources
- Managing a Nova compute instance
- Creating a Cinder volume and attaching it to a Nova compute instance
- Managing objects in Swift
- User management
- Creating a flavor
- Adding an image
- Dynamic inventory
- Deploying the phonebook application
- Ansible Tower
- Other Books You May Enjoy
Product information
- Title: Ansible 2 Cloud Automation Cookbook
- Author(s):
- Release date: February 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788295826
You might also like
book
Implementing DevOps with Ansible 2
Leverage the power of Ansible 2 and related tools and scale DevOps processes About This Book …
video
Automating with Ansible
Sneak Peek The Sneak Peek program provides early access to Pearson video products and is exclusively …
book
Security Automation with Ansible 2
Automate security-related tasks in a structured, modular fashion using the best open source automation tool available …
book
Kubernetes - A Complete DevOps Cookbook
Leverage Kubernetes and container architecture to successfully run production-ready workloads Key Features Implement Kubernetes to orchestrate …