This repository contains a series of ansible playbooks for creating and configuring Openshift labs in the Red Hat beaker environment.
A containerized environment has been created with ansible to be able to launch
the playbooks from a previously configured environment.
This can be started using the script run-ansible.sh
.
The environment uses several volumes which I use to host private information (GPG/SSH keys, passwords,...) this must be customized for each user's environment.
The .user
directory contains environment variables, the bash history file and
personal variables that we want to use in ansible.
.user/
├── env
├── history
└── vars.yml
This creates the virtual machines and an Openshift installation.
- 3 node cluster. They all have master/worker roles.
ap playbooks/base/ctlplane.yml -e "start_install=true"
- standard cluster. 3 master nodes + 1 worker node.
ap playbooks/base/ocp.yml -e "start_install=true"
- sno. A Single Node Openshift installation, in this case with ABI.
ap playbooks/base/sno.yml
In a second step we can apply additional configurations to the environment.
- Hosted clusters installation.
ap playbooks/setups/hcp-calico.yml
There are also a series of playbooks for specific tasks.
- Remove a lab:
ap playbooks/jobs/clean-lab.yml -e lab_name=standard