The Red Hat Ecosystem Catalog is the official source for discovering and learning more about the Red Hat Ecosystem of both Red Hat and certified third-party products and services.
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.
21Modules3Plugins
A set of Ansible modules that allow simple, but powerful, idempotent interactions with Infinidat Infiniboxes.
All Infindat InfiniBoxes are supported.
Most modules also implement a "stat" state. This is used to gather information, aka status, for the resource without making any changes to it.
Install the Infinidat Ansible collection on hosts or within containers using:
ansible-galaxy collection install infinidat.infibox -p ~/.ansible/collections
Complete instructions for installing collections is available at https://docs.ansible.com/ansible/latest/user_guide/collections_using.html.
Ansible 2.9 or newer is required to install as a collection. That said, the collection is a tarball. Modules may be extracted and installed manually if use of an older version of Ansible is required. Adjust values in playbooks/ansible.cfg as required.
A Makefile is provided. To see the recipes available within it use make help.
Example playbooks are included in the collection:
Main test playbooks:
Playbooks for testing cluster mapping:
Playbooks for testing snapshotting:
Playbooks for Infinibox configuration:
The two test playbooks also serve as a reference to the use of the modules. These exercise many modules demonstrating normal usage, idempotency and error conditions. Individual module documentation is available via ansible-doc.
Install the collection and cd into the collection's infi/ directory. Create an ibox yaml file in ibox_vars/. Use the example yaml file as a reference.
The --ask-vault-pass options below are only required if the ibox_vars/iboxNNNN.yaml file is encrypted using ansible-vault.
sudo apt install python3.8 python3.8-venv python3.8-distutils libffi-dev
python3.8 -m venv venv
source venv/bin/activate
python -m pip install -U pip
python -m pip install -r requirements.txt
cd playbooks/
../venv/bin/ansible-playbook --extra-vars "@../ibox_vars/iboxNNNN.yaml" --ask-vault-pass test_create_resources.yml
../venv/bin/ansible-playbook --extra-vars "@../ibox_vars/iboxNNNN.yaml" --ask-vault-pass test_remove_resources.yml
deactivate
To remove the collection, delete the collection from the path specified in the -p option during installation.
The initial set of Infindat Ansible modules were written by Gregory Shulov in 2016.
Infinidat's Professional Services (USA) team extended and improved the modules in 2019. Several modules were added. Idempotency was improved.
Contributions will be considered via standard Git processes. If you choose to contribute, such contribution must be permanently licensed in line with the overall project license, and copyright and all other IP rights for your contribution must be permanently assigned to Infinidat and/or its successors.
| Product |
|---|
| 2.4 |