This repository contains tooling to support the operational aspects of OpenShift Virtualization.
You can install the infra.openshift_virtualization_ops collection with the Ansible Galaxy CLI:
ansible-galaxy collection install infra.openshift_virtualization_opsYou can also include it in a requirements.yml file and install it via
ansible-galaxy collection install -r requirements.yml using the format:
collections:
- name: infra.openshift_virtualization_opsNote that if you install any collection from Ansible Galaxy, they will not be upgraded automatically when you upgrade the Ansible package.
To upgrade the collection to the latest available version, run the following command:
ansible-galaxy collection install infra.openshift_virtualization_ops --upgradeYou can also install a specific version of the collection, for example, if you
need to downgrade when something is broken in the latest version (please report
an issue in this repository). Use the following syntax where X.Y.Z can be any
available version:
ansible-galaxy collection install infra.openshift_virtualization_ops:==X.Y.ZSee Ansible Using Collections for more details.
This collection is ideal for accomplishing the following using Ansible automation:
- Day 2 operations of Virtual Machines running in OpenShift.
tox is used to perform tests and verification of this collection.
The following commands can be used to execute the various types of tests implemented:
tox -av # lists all tests
tox # run them all
tox -e <test name> # run specific one
tox -f sanity --ansible -c tox-ansible.ini # run tox-ansible that does our ansible-test sanity suiteThe Ansible Forum can be used for additional questions and issues related to this collection.
Information related to the releases for this collection can be found in the Release Notes found within this collection.
GNU General Public License v3.0 or later.
See LICENSE to see the full text.