Book Image

OpenStack Administration with Ansible

By : Walter Bentley
Book Image

OpenStack Administration with Ansible

By: Walter Bentley

Overview of this book

Most organizations are seeking methods to improve business agility because they have realized just having a cloud is not enough. Being able to improve application deployments, reduce infrastructure downtime, and eliminate daily manual tasks can only be accomplished through some sort of automation. Packed with real-world OpenStack administrative tasks, this book will walk you through working examples and explain how these tasks can be automated using one of the most popular open source automation tools—Ansible. We will start with a brief overview of OpenStack and Ansible and highlight some best practices. Each chapter will provide an introduction to handling various Cloud Operator administration tasks such as creating multiple users/tenants, setting up Multi-Tenant Isolation, customizing your clouds quotas, taking instance snapshots, evacuating compute hosts for maintenance, and running cloud health checks, and a step-by-step tutorial on how to automate these tasks with Ansible.
Table of Contents (18 chapters)
OpenStack Administration with Ansible
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

Setting up Docker and nova-docker


Using Docker as a hypervisor always made perfect sense to me. The ability to launch pre-defined containers using a centralized API/CLI-driven platform, such as OpenStack, just works. Similar to Kubernetes (of course Kubernetes has a slightly different approach to managing the containers), OpenStack will keep track of your containers across multiple Docker hosts. The power of having the option to do traditional cloud virtualization with KVM right alongside a cluster of Docker nodes speaks of the flexibility OpenStack offers to a cloud operator: no more having to choose one or the other.

In this section, we will review the manual steps to set up Docker and nova-docker within your OpenStack cloud. A brief snapshot of the steps is outlined, as follows:

  1. Install Docker on a new compute node(s).

  2. Install nova-docker on the compute node(s) (the commit version pulled is very specific and important if running Juno/Kilo).

  3. Update the Nova compute_driver parameter.

  4. Add the...