The Scale CI automation Ansible playbooks
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
files
group_vars
roles
vars
.gitignore
README.md
ansible.cfg
inventory
playbook.yml
scaleup.yml

README.md

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.