rhevm-qe-automation.ovirt-engine-deploy
ovirt-ansible
This is a collection of Ansible roles for setting up oVirt.
The roles in this repository help you configure the nodes that will be part of your oVirt deployment.
Host Groups
Each role comes with documentation that includes a section called Target systems
. This section explains what type of node each role applies to.
engine
This host group is for the node where the oVirt Engine management software will be installed.
hypervisors
This group is for all nodes that will act as hypervisors for the oVirt Engine.
Keep in mind that these roles don’t automatically add these machines to the oVirt Engine.
database
This group is designated for the node where the database will be installed.
dwh
This group is for the node where the Data Warehouse (DWH) will be installed.
guest
This group is for the virtual machines that will be hosted by the oVirt Engine.
Implemented Roles
- ovirt-collect-logs
- ovirt-engine-backup
- ovirt-engine-cleanup
- ovirt-engine-config
- ovirt-engine-db-dump
- ovirt-engine-remote-db
- ovirt-guest-agent
- ovirt-iso-uploader-conf
- ovirt-engine-rename
- ovirt-engine-remote-dwh
Testing
This project uses provision_docker as an Ansible role to run oVirt deployment roles in Docker containers.
To run oVirt deployment roles in Docker, you need to have the Docker service set up and running on your system.
In the tests
folder, there are playbooks for different versions of oVirt:
- tests/test-3.6.yml (Disabled due to issue #155)
- tests/test-4.0.yml (Disabled due to issue #155)
- tests/test-4.1.yml
- tests/test-4.2.yml
Running Tests
# Install Ansible and Docker Python library
pip install ansible docker-py
# Install required Ansible roles
ansible-galaxy install -r tests/requirements.yml -p tests/roles/
# Run the oVirt deployment roles
ansible-playbook tests/test-4.2.yml -i tests/inventory
You can find the Dockerfile used to create the images for testing in the Dockerfiles
directory.
ansible-galaxy install rhevm-qe-automation.ovirt-engine-deploy