Skip to content

Ansible Modules for Dell EMC PowerStore

License

GPL-3.0, Apache-2.0 licenses found

Licenses found

GPL-3.0
LICENSE
Apache-2.0
MODULE-LICENSE
Notifications You must be signed in to change notification settings

shenda1/ansible-powerstore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.

License

Ansible collection for PowerStore is released and licensed under the GPL-3.0 license. See 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 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 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.

Prerequisites

Ansible Modules PowerStore Version Red Hat Enterprise Linux SDK version Python version Ansible
v1.4.0 1.x
2.0
7.8,
8.2
1.5.0 3.7.x
3.8.x
3.9.x
2.10
2.11
2.12

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

Installation of SDK

  1. Clone the repo using the command:
git clone https://github.com/dell/python-powerstore/tree/1.5.0
  1. Go to the root directory of setup.
  2. Execute the following command:
pip install .

Building Collections

  • Use the following 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

Installing Collections

Online Installation of Collections

  1. Use the following 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 /Automation Hub and use the following command to install the collection anywhere in your system:
ansible-galaxy collection install dellemc-powerstore-1.4.0.tar.gz -p <install_path>
  1. 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:
collections:
- dellemc.powerstore
  1. In order to use an installed collection specific to the task use a proper FQCN (Fully Qualified Collection Name). Refer to the following example:
tasks:
- name: Get Volume details
  dellemc.powerstore.volume
  1. For generating Ansible documentation for a specific module, embed the FQCN before the module name. Refer to the following 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 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:

    export REQUESTS_CA_BUNDLE=/etc/pki/ca-trust/source/anchors/<<Certificate_Name>>
    
  3. Import the SSL certificate to host using the following command:

    update-ca-trust
    

Results

Each module returns the updated state and details of the entity. For example, if you are using the cluster module, all calls will return the updated details of the cluster. Sample result is shown in each module's documentation.

About

Ansible Modules for Dell EMC PowerStore

Resources

License

GPL-3.0, Apache-2.0 licenses found

Licenses found

GPL-3.0
LICENSE
Apache-2.0
MODULE-LICENSE

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%