This repository contains tasks to automate the install of Openshift on a new OpenStack environment using the python-openstackclient package.
- Edit the
inventoryfile 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:
- 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
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.