|
2 | 2 |
|
3 | 3 | The Ansible Modules for Dell Technologies (Dell) Unity allow Data Center and IT administrators to use RedHat Ansible to automate and orchestrate the configuration and management of Dell Unity arrays.
|
4 | 4 |
|
5 |
| -The capabilities of the Ansible modules are managing consistency groups, filesystem, filesystem snapshots, NAS server, NFS export, SMB share, hosts, snapshots, snapshot schedules, storage pools, user quotas, quota trees and volumes; and to gather facts from the array. The options available for each are list, show, create, modify and delete. These tasks can be executed by running simple playbooks written in yaml syntax. The modules are written so that all the operations are idempotent, so making multiple identical requests has the same effect as making a single request. |
| 5 | +The capabilities of the Ansible modules are managing consistency groups, filesystem, filesystem snapshots, CIFS server, NAS server, NFS server, NFS export, SMB share, interface, hosts, snapshots, snapshot schedules, storage pools, user quotas, quota trees and volumes. Capabilities also include gathering facts from the array. The options available for each are list, show, create, modify and delete. These tasks can be executed by running simple playbooks written in yaml syntax. The modules are written so that all the operations are idempotent, so making multiple identical requests has the same effect as making a single request. |
6 | 6 |
|
7 | 7 | ## License
|
8 |
| -The Ansible collection for Unity is released and licensed under the GPL-3.0 license. See [LICENSE](https://github.com/dell/ansible-unity/blob/1.3.0/LICENSE) for the full terms. Ansible modules and modules utilities that are part of the Ansible collection for Unity are released and licensed under the Apache 2.0 license. See [MODULE-LICENSE](https://github.com/dell/ansible-unity/blob/1.3.0/MODULE-LICENSE) for the full terms. |
| 8 | +The Ansible collection for Unity is released and licensed under the GPL-3.0 license. See [LICENSE](https://github.com/dell/ansible-unity/blob/1.4.0/LICENSE) for the full terms. Ansible modules and module utilities that are part of the Ansible collection for Unity are released and licensed under the Apache 2.0 license. See [MODULE-LICENSE](https://github.com/dell/ansible-unity/blob/1.4.0/MODULE-LICENSE) for the full terms. |
9 | 9 |
|
10 | 10 | ## Support
|
11 |
| -The Ansible collection for Unity are supported by Dell and are provided under the terms of the license attached to the collection. Please see the [LICENSE](#license) section for the full terms. Dell does not provide any support for the source code modifications. For any Ansible modules issues, questions or feedback, join the [Dell Automation Community](https://www.dell.com/community/Automation/bd-p/Automation). |
| 11 | +The Ansible collection for Unity is supported by Dell and is provided under the terms of the license attached to the collection. Please see the [LICENSE](#license) section for the full terms. Dell does not provide any support for the source code modifications. For any Ansible modules issues, questions or feedback, join the [Dell Automation Community](https://www.dell.com/community/Automation/bd-p/Automation). |
12 | 12 |
|
13 | 13 | ## Supported Platforms
|
14 |
| - * Dell Unity Arrays version 5.0, 5.1.2 |
| 14 | + * Dell Unity Arrays version 5.1, 5.2 |
15 | 15 |
|
16 | 16 | ## Prerequisites
|
17 | 17 | This table provides information about the software prerequisites for the Ansible Modules for Dell Unity.
|
18 | 18 |
|
19 | 19 | | **Ansible Modules** | **Red Hat Enterprise Linux** | **Python version** | **Python library version** | **Ansible** |
|
20 | 20 | |---------------------|------------------------------|--------------------|----------------------------|-------------|
|
21 |
| -| v1.3.0 | 8.4 <br> 8.5| 3.7 <br> 3.8 <br> 3.9 | 1.2.10 | 2.10 <br> 2.11 <br> 2.12| |
| 21 | +| v1.4.0 | 8.4 <br> 8.5| 3.8 <br> 3.9 <br> 3.10 | 1.2.11 | 2.11 <br> 2.12 <br> 2.13| |
22 | 22 |
|
23 | 23 | ## Idempotency
|
24 | 24 | The modules are written in such a way that all requests are idempotent and hence fault-tolerant. It essentially means that the result of a successfully performed request is independent of the number of times it is executed.
|
25 | 25 |
|
26 | 26 | ## List of Ansible Modules for Dell Unity
|
27 |
| - * [Consistency group module](https://github.com/dell/ansible-unity/blob/1.3.0/docs/Product%20Guide.md#consistency-group-module) |
28 |
| - * [Filesystem module](https://github.com/dell/ansible-unity/blob/1.3.0/docs/Product%20Guide.md#file-system-module) |
29 |
| - * [Filesystem snapshot module](https://github.com/dell/ansible-unity/blob/1.3.0/docs/Product%20Guide.md#filesystem-snapshot-module) |
30 |
| - * [Info module](https://github.com/dell/ansible-unity/blob/1.3.0/docs/Product%20Guide.md#info-module) |
31 |
| - * [Host module](https://github.com/dell/ansible-unity/blob/1.3.0/docs/Product%20Guide.md#host-module) |
32 |
| - * [NAS server module](https://github.com/dell/ansible-unity/blob/1.3.0/docs/Product%20Guide.md#nas-server-module) |
33 |
| - * [NFS export module](https://github.com/dell/ansible-unity/blob/1.3.0/docs/Product%20Guide.md##nfs-module) |
34 |
| - * [SMB share module](https://github.com/dell/ansible-unity/blob/1.3.0/docs/Product%20Guide.md#smb-share-module) |
35 |
| - * [Snapshot module](https://github.com/dell/ansible-unity/blob/1.3.0/docs/Product%20Guide.md#snapshot-module) |
36 |
| - * [Snapshot schedule module](https://github.com/dell/ansible-unity/blob/1.3.0/docs/Product%20Guide.md#snapshot-schedule-module) |
37 |
| - * [Storage pool module](https://github.com/dell/ansible-unity/blob/1.3.0/docs/Product%20Guide.md#storage-pool-module) |
38 |
| - * [User quota module](https://github.com/dell/ansible-unity/blob/1.3.0/docs/Product%20Guide.md#user-quota-module) |
39 |
| - * [Quota tree module ](https://github.com/dell/ansible-unity/blob/1.3.0/docs/Product%20Guide.md#quota-tree-module) |
40 |
| - * [Volume module](https://github.com/dell/ansible-unity/blob/1.3.0/docs/Product%20Guide.md#volume-module) |
| 27 | + * [Consistency group module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#consistency-group-module) |
| 28 | + * [Filesystem module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#file-system-module) |
| 29 | + * [Filesystem snapshot module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#filesystem-snapshot-module) |
| 30 | + * [Info module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#info-module) |
| 31 | + * [Host module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#host-module) |
| 32 | + * [CIFS server module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#cifs-server-module) |
| 33 | + * [NAS server module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#nas-server-module) |
| 34 | + * [NFS server module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#nfs-server-module) |
| 35 | + * [NFS export module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md##nfs-module) |
| 36 | + * [SMB share module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#smb-share-module) |
| 37 | + * [Interface module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#interface-module) |
| 38 | + * [Snapshot module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#snapshot-module) |
| 39 | + * [Snapshot schedule module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#snapshot-schedule-module) |
| 40 | + * [Storage pool module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#storage-pool-module) |
| 41 | + * [User quota module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#user-quota-module) |
| 42 | + * [Quota tree module ](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#quota-tree-module) |
| 43 | + * [Volume module](https://github.com/dell/ansible-unity/blob/1.4.0/docs/Product%20Guide.md#volume-module) |
41 | 44 |
|
42 | 45 | ## Installation of SDK
|
43 |
| -Install python sdk named 'storops'. It can be installed using pip, based on appropriate python version. |
| 46 | +* Install python sdk named 'storops'. It can be installed using pip, based on appropriate python version. |
44 | 47 |
|
45 |
| - pip install storops |
| 48 | + pip install storops |
46 | 49 |
|
47 | 50 | ## Building Collections
|
48 |
| - 1. Use the following command to build the collection from source code: |
49 |
| - |
50 |
| - ansible-galaxy collection build |
| 51 | + * Use this command to build the collection from source code: |
| 52 | + |
| 53 | + ansible-galaxy collection build |
51 | 54 |
|
52 |
| - For more details on how to build a tar ball, refer: [Building the collection](https://docs.ansible.com/ansible/latest/dev_guide/developing_collections_distributing.html#building-your-collection-tarball) |
| 55 | + For more details on how to build a tar ball, please refer: [Building the collection](https://docs.ansible.com/ansible/latest/dev_guide/developing_collections_distributing.html#building-your-collection-tarball) |
53 | 56 |
|
54 | 57 | ## Installing Collections
|
55 | 58 | #### Online Installation of Collections
|
56 | 59 | 1. Use the following command to install the latest collection hosted in galaxy:
|
57 | 60 |
|
58 |
| - ansible-galaxy collection install dellemc.unity -p <install_path> |
| 61 | + ansible-galaxy collection install dellemc.unity -p <install_path> |
59 | 62 |
|
60 | 63 | #### Offline Installation of Collections
|
61 | 64 | 1. Download the latest tar build from any of the available distribution channel [Ansible Galaxy](https://galaxy.ansible.com/dellemc/unity) /[Automation Hub](https://console.redhat.com/ansible/automation-hub/repo/published/dellemc/unity) and use the following command to install the collection anywhere in your system:
|
62 | 65 |
|
63 |
| - ansible-galaxy collection install dellemc-unity-1.3.0.tar.gz -p <install_path> |
| 66 | + ansible-galaxy collection install dellemc-unity-1.4.0.tar.gz -p <install_path> |
64 | 67 |
|
65 | 68 | 2. Set the environment variable:
|
66 | 69 |
|
67 |
| - export ANSIBLE_COLLECTIONS_PATHS=$ANSIBLE_COLLECTIONS_PATHS:<install_path> |
| 70 | + export ANSIBLE_COLLECTIONS_PATHS=$ANSIBLE_COLLECTIONS_PATHS:<install_path> |
68 | 71 |
|
69 | 72 |
|
70 | 73 | ## Using Collections
|
71 | 74 |
|
72 |
| - 1. In order to use any Ansible module, ensure that the importing of a proper FQCN (Fully Qualified Collection Name) must be embedded in the playbook. Refer to the following example: |
73 |
| - |
74 |
| - collections: |
75 |
| - - dellemc.unity |
76 |
| - |
77 |
| - 2. In order to use an installed collection specific to the task use a proper FQCN (Fully Qualified Collection Name). Refer to the following example: |
78 |
| - |
79 |
| - tasks: |
80 |
| - - name: Get Volume details |
81 |
| - dellemc.unity.volume |
| 75 | + * In order to use any Ansible module, ensure that the importing of proper FQCN (Fully Qualified Collection Name) must be embedded in the playbook. |
| 76 | + Refer to the following example: |
| 77 | + |
| 78 | + collections: |
| 79 | + - dellemc.unity |
82 | 80 |
|
83 |
| - 3. For generating Ansible documentation for a specific module, embed the FQCN before the module name. Refer to the following example: |
| 81 | + * In order to use an installed collection specific to the task use a proper FQCN (Fully Qualified Collection Name). Refer to the following example: |
84 | 82 |
|
85 |
| - ansible-doc dellemc.unity.info |
| 83 | + tasks: |
| 84 | + - name: Get Volume details |
| 85 | + dellemc.unity.volume |
| 86 | + |
| 87 | + * For generating Ansible documentation for a specific module, embed the FQCN before the module name. Refer to the following example: |
| 88 | + |
| 89 | + ansible-doc dellemc.unity.info |
86 | 90 |
|
87 | 91 | ## Running Ansible Modules
|
88 |
| -The Ansible server must be configured with Python library for Unity to run the Ansible playbooks. The [Documents]( https://github.com/dell/ansible-unity/tree/1.3.0/docs ) 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 need to be configured before running the modules. |
| 92 | +The Ansible server must be configured with Python library for Unity to run the Ansible playbooks. The [Documents]( https://github.com/dell/ansible-unity/tree/1.4.0/docs ) 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 need to be configured before running the modules. |
89 | 93 |
|
90 | 94 | ## SSL Certificate Validation
|
91 | 95 |
|
92 |
| -**NOTE**: These modules are supported through CA certified certificate only, however a self-signed certificate is not supported. |
| 96 | +* Copy the CA certificate to the "/etc/pki/ca-trust/source/anchors" path of the host by any external means. |
| 97 | +* Set the "REQUESTS_CA_BUNDLE" environment variable to the path of the SSL certificate using the command: |
| 98 | + |
| 99 | + export REQUESTS_CA_BUNDLE=/etc/pki/ca-trust/source/anchors/<<Certificate_Name>> |
| 100 | +* Import the SSL certificate to host using the command: |
| 101 | + |
| 102 | + update-ca-trust extract |
| 103 | +* If "TLS CA certificate bundle error" occurs, then follow these steps: |
93 | 104 |
|
94 |
| - * Copy the CA certificate to this "/etc/pki/ca-trust/source/anchors" path of the host by any external means. |
95 |
| - * 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>>" |
96 |
| - * Import the SSL certificate to host using the command "update-ca-trust". |
| 105 | + cd /etc/pki/tls/certs/ |
| 106 | + openssl x509 -in ca-bundle.crt -text -noout |
97 | 107 |
|
98 | 108 | ## Results
|
99 |
| -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. Sample result is shown in each module's documentation. |
| 109 | +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. Sample result is shown in each module's documentation. |
| 110 | + |
| 111 | +## Ansible Execution Environment |
| 112 | + |
| 113 | +Ansible can also be installed in a container environment. Ansible Builder provides the ability to create reproducible, self-contained environments as container images that can be run as Ansible execution environments. |
| 114 | +* Install the ansible builder package using: |
| 115 | + |
| 116 | + pip3 install ansible-builder |
| 117 | +* Create the execution environment using: |
| 118 | + |
| 119 | + ansible-builder build --tag <tag_name> --container-runtime docker |
| 120 | +* After the image is built, run the container using: |
| 121 | + |
| 122 | + docker run -it <tag_name> /bin/bash |
| 123 | +* Verify collection installation using command: |
| 124 | + |
| 125 | + ansible-galaxy collection list |
| 126 | +* The playbook can be run on the container using: |
| 127 | + |
| 128 | + docker run --rm -v $(pwd):/runner <tag_name> ansible-playbook info_tests.yml |
| 129 | + |
| 130 | +## Maintanence |
| 131 | +Ansible Modules for Dell Technologies Unity deprecation cycle is aligned with [Ansible](https://docs.ansible.com/ansible/latest/dev_guide/module_lifecycle.html). |
0 commit comments