Skip to content

Commit

Permalink
Merge pull request #10 from dell/release_v1.5.0
Browse files Browse the repository at this point in the history
release version 1.5.0
  • Loading branch information
shenda1 authored Mar 18, 2022
2 parents 8d70bae + 6c8c164 commit 8f4dd8a
Show file tree
Hide file tree
Showing 67 changed files with 15,274 additions and 6,382 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.9

- name: Install ansible (${{ matrix.ansible-version }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check
Expand Down Expand Up @@ -49,12 +49,12 @@ jobs:
ansible-version: [stable-2.10, stable-2.11, stable-2.12]

steps:
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
# it is just required to run that once as "ansible-test sanity" in the docker image
# will run on all python versions it supports.
python-version: 3.8
python-version: 3.9

- name: Install ansible (${{ matrix.ansible-version }}) version
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check
Expand Down
10 changes: 10 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
# ansible-powerstore Change Log
## Version 1.5.0 - released on 25/03/2022
- Added CRUD operations and sending test email for email module.
- DNS module is added to get the details and add/remove addresses.
- NTP module is added to get the details and add/remove addresses.
- Remote support module is added to get the details, modify the attributes, verify the connection and send a test alert.
- Remote support contact module is added to get the details and modify the attributes.
- SMTP config module is added to get the details, modify the attributes and send a test email.
- Info module is enhanced to list dns servers, email notification destinations, NTP servers, remote support configuration, remote support contacts and SMTP configuration.

## Version 1.4.0 - released on 16/12/2021
- Added CRUD operations for remote system.
- Certificate module is added to get the details, add/import a certificate, exchange certificate, reset certificates and modify attributes of network.
- Security config module is added to get the details and modify attributes of a security configuration.
- Host module is enhanced to provide support for NVMe initiators.
- Info module is enhanced to list certificates, AD/LDAP providers and security configuration.
- Names of previously released modules have been changed from dellemc_powerstore_\<module name> to \<module name>.

## Version 1.3.0 - released on 28/09/2021
- Added dual licensing.
Expand Down
112 changes: 60 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,108 +1,116 @@
# Ansible Modules for Dell EMC PowerStore
The Ansible Modules for Dell EMC PowerStore allow Data Center and IT administrators to use RedHat Ansible to automate and orchestrate the configuration and management of Dell EMC PowerStore arrays.
# Ansible Modules for Dell Technologies PowerStore
The Ansible Modules for Dell Technologies (Dell) PowerStore allow Data Center and IT administrators to use RedHat Ansible to automate and orchestrate the configuration and management of Dell PowerStore arrays.

The capabilities of the Ansible modules are managing volumes, volume groups, hosts, host groups, snapshots, snapshot rules, replication rules, replication sessions, protection policies, file systems, NAS servers, SMB shares, user and tree quotas, file system snapshots, NFS exports, Cluster, Networks, Local users, Job, Roles, Certificates, Remote systems and security configuration . It also allows gathering high level info 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.
The capabilities of the Ansible modules are managing volumes, volume groups, hosts, host groups, snapshots, snapshot rules, replication rules, replication sessions, protection policies, file systems, NAS servers, SMB shares, user and tree quotas, file system snapshots, NFS exports, Clusters, Networks, Local users, Jobs, Roles, Certificates, Remote systems, security configuration, DNS server, Email notification destination, NTP server, Remote support configuration, Remote support contacts and SMTP configuration. It also allows gathering high level info 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.
## License
Ansible collection for PowerStore is released and licensed under the GPL-3.0 license. See [LICENSE](LICENSE) for the full terms. Ansible modules and modules utilities that are part of the Ansible collection for PowerStore are released and licensed under the Apache 2.0 license. See [MODULE-LICENSE](MODULE-LICENSE) for the full terms.
Ansible collection for PowerStore is released and licensed under the GPL-3.0 license. See [LICENSE](https://github.com/dell/ansible-powerstore/blob/1.5.0/LICENSE) for the full terms. Ansible modules and modules utilities that are part of the Ansible collection for PowerStore are released and licensed under the Apache 2.0 license. See [MODULE-LICENSE](https://github.com/dell/ansible-powerstore/blob/1.5.0/MODULE-LICENSE) for the full terms.

## Support
Ansible collections for PowerStore are supported by Dell EMC and are provided under the terms of the license attached to the collection. Please see the [LICENSE](#license) for the full terms.
Dell EMC does not provide any support for the source code modifications.
For any Ansible modules issues, questions or feedback, join the [Dell EMC Automation Community](https://www.dell.com/community/Automation/bd-p/Automation).
Ansible collections for PowerStore are supported by Dell and are provided under the terms of the license attached to the collection. Please see the [LICENSE](#license) 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).

## Prerequisites
| **Ansible Modules** | **PowerStore Version** | **Red Hat Enterprise Linux**| **SDK version**| **Python version** | **Ansible** |
|---------------------|-----------------------|------------------------------|--------------------|--------------------|-------------|
| v1.4.0 | 1.x <br> 2.0 |7.8, <br>8.2 | 1.5.0 | 3.7.x <br> 3.8.x <br> 3.9.x | 2.10 <br> 2.11 <br> 2.12 |
| v1.5.0 | 1.x <br> 2.0 <br> 2.1 |7.9 <br> 8.4 <br> 8.5| 1.6.0 | 3.7.x <br> 3.8.x <br> 3.9.x <br> 3.10.x | 2.10 <br> 2.11 <br> 2.12 |
* Please follow PyPowerStore installation instructions on [PyPowerStore Documentation](https://github.com/dell/python-powerstore)

## Idempotency
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.

## List of Ansible Modules for Dell EMC PowerStore
* [Volume module](docs/Product%20Guide.md#volume-module)
* [Volume group module](docs/Product%20Guide.md#volume-group-module)
* [Host module](docs/Product%20Guide.md#host-module)
* [Host group module](docs/Product%20Guide.md#host-group-module)
* [Snapshot module](docs/Product%20Guide.md#snapshot-module)
* [Snapshot rule module](docs/Product%20Guide.md#snapshot-rule-module)
* [Replication rule module](docs/Product%20Guide.md#replication-rule-module)
* [Replication session module](docs/Product%20Guide.md#replication-session-module)
* [Protection policy module](docs/Product%20Guide.md#protection-policy-module)
* [Info module](docs/Product%20Guide.md#info-module)
* [File system module](docs/Product%20Guide.md#file-system-module)
* [NAS server module](docs/Product%20Guide.md#nas-server-module)
* [SMB share module](docs/Product%20Guide.md#smb-share-module)
* [Quota module](docs/Product%20Guide.md#quota-module)
* [File system snapshot module](docs/Product%20Guide.md#filesystem-snapshot-module)
* [NFS export module](docs/Product%20Guide.md#nfs-export-module)
* [Cluster module](docs/Product%20Guide.md#cluster-module)
* [Network module](docs/Product%20Guide.md#network-module)
* [Local user module](docs/Product%20Guide.md#local-user-module)
* [Role module](docs/Product%20Guide.md#role-module)
* [Job module](docs/Product%20Guide.md#job-module)
* [Certificate module](docs/Product%20Guide.md#certificate-module)
* [Remote system module](docs/Product%20Guide.md#remote-system-module)
* [Security config module](docs/Product%20Guide.md#security-config-module)

## List of Ansible Modules for Dell PowerStore
* [Volume module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#volume-module)
* [Volume group module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#volume-group-module)
* [Host module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#host-module)
* [Host group module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#host-group-module)
* [Snapshot module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#snapshot-module)
* [Snapshot rule module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#snapshot-rule-module)
* [Replication rule module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#replication-rule-module)
* [Replication session module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#replication-session-module)
* [Protection policy module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#protection-policy-module)
* [Info module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#info-module)
* [File system module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#file-system-module)
* [NAS server module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#nas-server-module)
* [SMB share module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#smb-share-module)
* [Quota module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#quota-module)
* [File system snapshot module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#filesystem-snapshot-module)
* [NFS export module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#nfs-export-module)
* [Cluster module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#cluster-module)
* [Network module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#network-module)
* [Local user module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#local-user-module)
* [Role module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#role-module)
* [Job module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#job-module)
* [Certificate module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#certificate-module)
* [Remote system module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#remote-system-module)
* [Security config module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#security-config-module)
* [DNS module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#dns-module)
* [Email module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#email-module)
* [NTP module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#ntp-module)
* [Remote support module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#remote-support-module)
* [Remote support contact module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#remote-support-contact-module)
* [SMTP config module](https://github.com/dell/ansible-powerstore/blob/1.5.0/docs/Product%20Guide.md#smtp-config-module)
## Installation of SDK
1. Clone the repo using the command:

git clone https://github.com/dell/python-powerstore/tree/1.5.0

2. Go to the root directory of setup.
3. Execute the following command:<br/>

pip install .
* Install the python SDK named [PyPowerStore](https://pypi.org/project/PyPowerStore/). It can be installed using pip, based on appropriate python version. Execute this command:

pip install PyPowerStore
* Alternatively, Clone the repo "https://github.com/dell/python-powerstore"
using command:

git clone https://github.com/dell/python-powerstore.git
* Go to the root directory of setup.
* Execute this command:

pip install .

## Building Collections
* Use the following command to build the collection from source code:
* Use this command to build the collection from source code:

ansible-galaxy collection build

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)

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

ansible-galaxy collection install dellemc.powerstore -p <install_path>

#### Offline Installation of Collections
1. Download the latest tar build from any of the available distribution channel [Ansible Galaxy](https://galaxy.ansible.com/dellemc/powerstore) /[Automation Hub](https://console.redhat.com/ansible/automation-hub/repo/published/dellemc/powerstore) and use the following command to install the collection anywhere in your system:
1. Download the latest tar build from any of the available distribution channel [Ansible Galaxy](https://galaxy.ansible.com/dellemc/powerstore) /[Automation Hub](https://console.redhat.com/ansible/automation-hub/repo/published/dellemc/powerstore) and use this command to install the collection anywhere in your system:

ansible-galaxy collection install dellemc-powerstore-1.4.0.tar.gz -p <install_path>
ansible-galaxy collection install dellemc-powerstore-1.5.0.tar.gz -p <install_path>

2. Set the environment variable:

export ANSIBLE_COLLECTIONS_PATHS=$ANSIBLE_COLLECTIONS_PATHS:<install_path>

## Using Collections
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:
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 this example:

collections:
- dellemc.powerstore

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:
2. In order to use an installed collection specific to the task use a proper FQCN (Fully Qualified Collection Name). Refer to this example:

tasks:
- name: Get Volume details
dellemc.powerstore.volume

3. For generating Ansible documentation for a specific module, embed the FQCN before the module name. Refer to the following example:
3. For generating Ansible documentation for a specific module, embed the FQCN before the module name. Refer to this example:

ansible-doc dellemc.powerstore.info

## Running Ansible Modules
The Ansible server must be configured with Python library for PowerStore to run the Ansible playbooks. The [Documents](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 needs to be configured before running the modules.
The Ansible server must be configured with Python library for PowerStore to run the Ansible playbooks. The [Documents](https://github.com/dell/ansible-powerstore/tree/1.5.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 needs to be configured before running the modules.

## SSL Certificate Validation
1. Copy the CA certificate to this "/etc/pki/ca-trust/source/anchors" path of the host by any external means.
2. Set the "REQUESTS_CA_BUNDLE" environment variable to the path of the SSL certificate using the following command:
2. Set the "REQUESTS_CA_BUNDLE" environment variable to the path of the SSL certificate using this command:

export REQUESTS_CA_BUNDLE=/etc/pki/ca-trust/source/anchors/<<Certificate_Name>>

3. Import the SSL certificate to host using the following command:
3. Import the SSL certificate to host using this command:

update-ca-trust

Expand Down
Loading

0 comments on commit 8f4dd8a

Please sign in to comment.