Skip to content

Commit 3f5334f

Browse files
Merge pull request #19 from dell/RTSv1.4
Release version 1.4.0
2 parents 72b149f + 96c2210 commit 3f5334f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+7906
-642
lines changed

ChangeLog.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
# ansible-unity Change Log
2+
## Version 1.4.0 - released on 28/06/22
3+
- Added execution environment manifest file to support building an execution environment with ansible-builder.
4+
- Added cifsserver module to support create, list and delete CIFS server.
5+
- Added nfsserver module to support create, list and delete NFS server.
6+
- Added interface module to support create, list and delete interface.
7+
- Enhance nfs module to support advanced host management option.
8+
- Enhanced info module to list cifs server, nfs servers, ethernet port and file interface.
9+
- Enhanced nas server module to support create, modify and delete of nas server replication.
10+
- Enhanced filesystem module to support create, modify and delete of filesystem replication.
11+
- Check mode is supported for Info.
12+
213
## Version 1.3.0 - released on 25/03/22
314
- Enhanced host module to support listing of network addresses, FC initiators, ISCSI initiators and allocated volumes of a host
415
- Enhance host module to support add/remove network address to/from a host.
@@ -47,4 +58,4 @@
4758
- Added support for CRUD operations on a snapshot of a volume.
4859
- Added support to create a snapshot for a consistency group.
4960
- Added support to map/unmap a host to/from a snapshot.
50-
- Added CRUD operations support for a snapshot schedule.
61+
- Added CRUD operations support for a snapshot schedule.

README.md

Lines changed: 78 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2,98 +2,130 @@
22

33
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.
44

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.
66

77
## 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.
99

1010
## 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).
1212

1313
## Supported Platforms
14-
* Dell Unity Arrays version 5.0, 5.1.2
14+
* Dell Unity Arrays version 5.1, 5.2
1515

1616
## Prerequisites
1717
This table provides information about the software prerequisites for the Ansible Modules for Dell Unity.
1818

1919
| **Ansible Modules** | **Red Hat Enterprise Linux** | **Python version** | **Python library version** | **Ansible** |
2020
|---------------------|------------------------------|--------------------|----------------------------|-------------|
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|
2222

2323
## Idempotency
2424
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.
2525

2626
## 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)
4144

4245
## 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.
4447

45-
pip install storops
48+
pip install storops
4649

4750
## 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
5154

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)
5356

5457
## Installing Collections
5558
#### Online Installation of Collections
5659
1. Use the following command to install the latest collection hosted in galaxy:
5760

58-
ansible-galaxy collection install dellemc.unity -p <install_path>
61+
ansible-galaxy collection install dellemc.unity -p <install_path>
5962

6063
#### Offline Installation of Collections
6164
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:
6265

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>
6467

6568
2. Set the environment variable:
6669

67-
export ANSIBLE_COLLECTIONS_PATHS=$ANSIBLE_COLLECTIONS_PATHS:<install_path>
70+
export ANSIBLE_COLLECTIONS_PATHS=$ANSIBLE_COLLECTIONS_PATHS:<install_path>
6871

6972

7073
## Using Collections
7174

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
8280

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:
8482

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
8690

8791
## 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.
8993

9094
## SSL Certificate Validation
9195

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:
93104

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
97107

98108
## 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

Comments
 (0)