This repository contains tooling to support the operational aspects of OpenShift Virtualization.
See CHANGELOG.md for release history and changes.
This collection includes the following roles for operating OpenShift Virtualization:
- vm_backup_restore - Virtual Machine backup and restore capabilities.
- vm_collect - Collection of Migration Toolkit for Virtualization inventory information.
- vm_hot_plug - Hot Plug Virtual Machine resources.
- vm_lifecycle - Management of the lifecycle activities of Virtual Machines.
- vm_networking - Management of Virtual Machine networking.
- vm_patching - Patching related activities for Virtual Machines.
The following Ansible Collections are required:
---
collections:
- name: redhat.openshift_virtualization
version: ">=2.1.0"
- name: redhat.openshift
version: ">=4.0.0"
- name: kubernetes.core
version: ">=5.2.0"
...You can install the infra.openshift_virtualization_ops collection with the Ansible Galaxy CLI:
ansible-galaxy collection install infra.openshift_virtualization_opsNote that if you install any collections 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 include it in a requirements.yml file and install it with
ansible-galaxy collection install -r requirements.yml, using the format:
---
collections:
- name: infra.openshift_virtualization_ops
...See Using Ansible 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.
GNU General Public License v3.0 or later.
See the LICENSE to see the full text.