The Ansible Modules for Dell EMC PowerMax allow data center and IT administrators to use RedHat Ansible to automate and orchestrate the configuration and management of Dell EMC PowerMax arrays.
The capabilities of Ansible modules are managing volumes, storage groups, ports, port groups, hosts, host groups, masking views, snapshots, SRDF links, RDF groups, metro DR environments, jobs, snapshot policies, storage pools and gathering high-level facts about the arrays. The options available for each capability are list, show, create, delete, and modify. These tasks can be executed by running simple playbooks written in yaml syntax. The modules are written so that all the operations are idempotent, therefore making multiple identical requests has the same effect as making a single request.
Ansible modules for PowerMax are supported by Dell EMC and are provided under the terms of the license attached to the source code. Dell EMC does not provide support for any source code modifications. For any Ansible module issues, questions or feedback, join the Dell EMC Automation community.
- Dell EMC PowerMax and VMAX All Flash arrays with Unisphere version 9.1 and later.
This table provides information about the software prerequisites for the Ansible Modules for Dell EMC PowerMax.
Ansible Modules | Unisphere Version | PowerMaxOS | Red Hat Enterprise Linux | Python version | Python library version | Ansible |
---|---|---|---|---|---|---|
v1.5.0 | 9.1 9.2 |
5978.221.221 5978.444.444 5978.669.669 5978.711.711 |
7.5 7.6, 7.7, 7.8, and 8.2 |
2.7.12 3.5.2 3.6.x 3.7.x |
9.1.x.x 9.2.x.x |
2.9 and 2.10 |
- Please follow PyU4V installation instructions on PyU4V Documentation
The modules are written in such a way that all requests are idempotent and hence fault-tolerant. This means that the result of a successfully performed request is independent of the number of times it is executed.
- Volume module
- Host module
- Host Group module
- Snapshot module
- Masking View module
- Port module
- Port Group module
- Storage Group module
- Gatherfacts module
- SRDF module
- RDF Group module
- Metro DR module
- Job module
- Snapshot Policy module
- Storage Pool module
- Process Storage Pool module
Install the python sdk named 'PyU4V'. It can be installed using pip, based on the appropriate python version.
-
Download the tar build and run the following command to install the collection anywhere in your system:
ansible-galaxy collection install dellemc-powermax-1.5.0.tar.gz -p <install_path>
-
Set the environment variable:
export ANSIBLE_COLLECTIONS_PATHS=$ANSIBLE_COLLECTIONS_PATHS:<install_path>
- In order to use any Ansible module, ensure that the importation of the proper FQCN (Fully Qualified Collection Name) must be embedded in the playbook. For example,
collections:
- dellemc.powermax - To generate Ansible documentation for a specific module, embed the FQCN before the module name. For example,
ansible-doc dellemc.powermax.dellemc_powermax_gatherfacts
The Ansible server must be configured with Python library for Unisphere to run the Ansible playbooks. The Documents provide information on different Ansible modules along with their functions and syntax. The parameters table in the Product Guide provides information on various parameters which needs to be configured before running the modules.
- Copy the CA certificate to the "/etc/pki/ca-trust/source/anchors" path of the host by any external means.
- Set the "REQUESTS_CA_BUNDLE" environment variable to the path of the SSL certificate using the command:
export REQUESTS_CA_BUNDLE=/etc/pki/ca-trust/source/anchors/<<Certificate_Name>> - Import the SSL certificate to host using the command:
update-ca-trust extract - If "TLS CA certificate bundle error" occurs, then follow below steps:
- cd /etc/pki/tls/certs/
- openssl x509 -in ca-bundle.crt -text -noout
Each module returns the updated state and details of the entity, for example, if you are using the Volume module, all calls will return the updated details of the volume. A sample result is shown in each module's documentation.