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

Creating users and tenants


Creating new users and tenants seems like a simple task for a cloud operator/administrator, but it does become a burden if asked to create 10, 20, or 50 users and 5, 10, or 20 tenants. First, we create the user (with a corresponding complex secure password), we then create the tenant for the user, and finally, we link that user to that tenant while assigning that user the appropriate role.

Imagine doing this over and over again. Boring! The first thing you learn as an administrator of anything is figure out what your daily tasks are and then determine how to get them completed as fast/easily as possible. This is exactly what we are going to do here.

Manually creating users and tenants

To further demonstrate the steps outlined earlier, we will walk you through the commands used to create a user and tenant.

Note

For simplicity purposes, we will demonstrate the manual commands using the OpenStack CLI only.

Creating a user

Creating a user within OpenStack involves sending...