As OpenStack popularity and complexity continue to rise and new feature sets are introduced regularly, findings ways to simplify and produce consistent results is always at the forefront of any system administrator’s mind. With the use of Ansible, an agentless IT automation technology, a system administrator can do just that.
The goal of this lab is to provide a brief introduction to Ansible, the usability of Ansible playbooks, and then show how to leverage key Ansible modules to better manage and simplify OpenStack environments. These management playbooks will consist of typical administrative tasks such as:
-
Managing Networks
-
Managing Instances
-
Managing Resources
This lab is best suited for system and OpenStack administrators looking for ways to automate their day-to-day OpenStack administrative tasks.
This lab will provide a step-by-step on using several Ansible OpenStack modules to manage everyday tasks. The lab environment consists of a virtual machine running on OVH public cloud instances and the use of either the student’s laptop as a workstation with Ansible installed or running a Fedora VirtualBox image provided by the instructors.
Each student’s OVH public cloud instance consists of an
RDO Project OpenStack packstack
installation
using CentOS as the Linux distribution. Each instance
will contain a file labeled keystonerc_demo
with all the credential
information to use an Openstack user labeled demo
within the project
labeled demo
.
The lab exercises are intended to be small simple playbooks that effect different areas of day-to-day OpenStack administration. Each exercise will focus on a key element of OpenStack, i.e. network creation. Each lab builds upon the previous lab exercise and the lab will focus on using as many Ansible OpenStack modules whenever possible. The final lab exercise will encapsulate all the information you have learned from the previous labs and provide an opportunity to test your knowledge of managing OpenStack networks, instances and their resources.
The labs require students to be able to access the OVH instance via an ssh
session, via their workstation or a VirtualBox VM running Fedora. Each student
will have a specific student_id
that is assigned by the instructor. This
student_id
is important as it is the name of your instance.
IMPORTANT: If you have not been assigned a student_id
and
associated IP address of the instance, please get a hold
of an instructor.
The folowing tables provide specific details about the environment that is to be used.
*OpenStack Dashboard |
OpenStack RC File Location |
OpenStack User |
Openstack Project |
/root/keystonerc_demo |
demo |
demo |
The details of the instance including the name and IP address will be provided by the instructor during the lab.
Name of Instance |
IP Address |
username |
<student_id> |
<instructor_provided> |
centos |
The student’s public SSH key i.e. id_rsa.pub
on their workstation will be
required in order to SSH into the instance.
For documentation in how to generate a SSH key, please visit here.
To copy your SSH key into the instance you could use the ssh-copy-id command in Linux/MacOS or manually into the appropiate directory structure. The root credentials for the instance are:
Username |
Password |
root |
OpenStack+Vancouver |