These are Ansible configuration scripts for the Olympus JBoss SET CI server.
- Ansible [core] 2.12 or newer (check using
ansible --version
, see official guide) - Python 3.8 or newer (check using
python3 --version
, see official guide)
Some roles in this repository have been integrated with Molecule. Molecule is a library that makes it possible to execute Ansible roles on disposable containers to perform testing.
Molecule needs to be installed on the system where you want to test roles.
Recommended way to install molecule on a developer machine:
- Install & upgrade pip:
python -m pip install --upgrade pip
, - go to the zeus directory,
- with python env, create a virtual environment:
python3 -m venv env
, - enter virtual env:
source env/bin/activate
(to exit the virtual env, rundeactivate
), - via pip, install molecule with podman (or docker) driver:
python3 -m pip install "molecule[ansible,lint,podman]"
.
(See https://molecule.readthedocs.io/en/latest/installation.html for official guide.)
- From root of the repo, Run
$ molecule test --all
to run the whole testsuite. - From root of the repo, Run
$ molecule test -s role_name
to run individual role test.
- First install OpenStack in your local machine. Follow the instructions here
- Run the playbook
cci_run.yml
, it will perform all the operations.