/ansible-vxrail

Primary LanguagePythonApache License 2.0Apache-2.0

Ansible Modules for Dell EMC VxRail

The Ansible Modules for Dell EMC VxRail allow data center and IT administrators to use RedHat Ansible to automate and orchestrate the configuration and management of Dell EMC VxRail.

The capabilities of Ansible modules are gathering system information and performing Lay2 Node Expansion. 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.

Support

Ansible modules for VxRail are supported by Dell EMC open source community, but not product support agreements, 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.

Supported Platforms

  • Dell EMC VxRail

Prerequisites

This table provides information about the software prerequisites for the Ansible Modules for Dell EMC VxRail.

Ansible Modules VxRail version Python version Python library (VxRail Ansible Utility) version Ansible Version
v2.4.1 8.0.210 3.7, 3.8 2.4.1 2.9 and 2.10

Idempotency

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.

List of Ansible Modules for Dell EMC VxRail

Installation of SDK

Install the python sdk named 'VxRail Ansible Utility'. It can be installed using pip, based on the appropriate python version.

Installing Collections

  • Download the tar build and install the collection anywhere in your system, e.g.

    ansible-galaxy collection install dellemc-vxrail-1.1.0.tar.gz -p <install_path>
    
  • Set the environment variable:

    export ANSIBLE_COLLECTIONS_PATHS=$ANSIBLE_COLLECTIONS_PATHS:<install_path>
    

Using Collections

  • 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.vxrail
  • To generate Ansible documentation for a specific module, embed the FQCN before the module name. For example,
           ansible-doc dellemc.vxrail.dellemc_vxrail_cluster

Running Ansible Modules

The Ansible server must be configured with Python library for VxRail Ansible Utility 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.