Skip to content

mbruzek/scale-ci-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scale-ci-ansible

This repository contains tasks to automate the install of Openshift on a new OpenStack environment using the python-openstackclient package.

Usage

  1. Edit the inventory file to suit your environment. The "openstack-server" group is a system that runs the OpenStack commands such as localhost or the OpenStack controller node with the rc file. The system also needs the paths to a public and private key. This step has been scripted if the environment has the following variables set: PUBLIC_KEY, PRIVATE_KEY, OPENSTACK_SERVER, OPENSTACK_USER, IMAGE_SERVER, IMAGE_USER then call the script:
scripts/create_inventory.sh
  1. Run the Ansible playbook:
ansible-playbook -vv playbook.yml

This playbook runs a series of commands on the "openstack-server" (some require super user authority so you may need to use the ask become password flag -K) to create a VM server in OpenStack. A floating IP address is created for a VM server and the address is added to the Ansible dynamic inventory. Other tasks are run in sequence at the end of the playbook to automate the different parts of the install.

When finished with the OpenShift cluster use the reset_openstack_environment.yml playbook to revert the OpenStack commands returning the environment back removing all the OpenStack objects that were created in the process.

About

The Scale CI automation Ansible playbooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages