netapp.elementsw.na_elementsw_cluster module – NetApp Element Software Create Cluster
Note
This module is part of the netapp.elementsw collection (version 21.7.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install netapp.elementsw
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: netapp.elementsw.na_elementsw_cluster
.
New in netapp.elementsw 2.7.0
Synopsis
Initialize Element Software node ownership to form a cluster.
If the cluster does not exist, username/password are still required but ignored for initial creation.
username/password are used as the node credentials to see if the cluster already exists.
username/password can also be used to set the cluster credentials.
If the cluster already exists, no error is returned, but changed is set to false.
Cluster modifications are not supported and are ignored.
Requirements
The below requirements are needed on the host that executes this module.
The modules were developed with SolidFire 10.1
solidfire-sdk-python (1.1.0.92) or greater. Install using ‘pip install solidfire-sdk-python’
Parameters
Parameter |
Comments |
---|---|
Required to indicate your acceptance of the End User License Agreement when creating this cluster. To accept the EULA, set this parameter to true. Choices:
|
|
List of name-value pairs in JSON object format. |
|
Initial password for the cluster admin account. If not provided, default to password. |
|
Username for the cluster admin. If not provided, default to username. |
|
to enable or disable encryption at rest Choices:
|
|
If the cluster exists, the default is to verify that nodes is a superset of the existing ensemble. A superset is accepted because some nodes may have a different role. But the module reports an error if the existing ensemble contains a node not listed in nodes. This checker is disabled when this option is set to false. Choices:
|
|
The hostname or IP address of the SolidFire cluster. For na_elementsw_cluster, the Management IP (MIP) or hostname of the node to initiate the cluster creation from. |
|
Floating (virtual) IP address for the cluster on the management network. |
|
Storage IP (SIP) addresses of the initial set of nodes making up the cluster. nodes IP must be in the list. |
|
(experimental) order number as provided by NetApp |
|
Password for the specified user. |
|
Number of replicas of each piece of data to store in the cluster. Default: |
|
(experimental) serial number as provided by NetApp |
|
Floating (virtual) IP address for the cluster on the storage (iSCSI) network. |
|
Time to wait for cluster creation to complete. Default: |
|
Please ensure that the user has the adequate permissions. For more information, please read the official documentation https://mysupport.netapp.com/documentation/docweb/index.html?productID%3D62636%26language%3Den-US. |
Notes
Note
The modules prefixed with na\\_elementsw are built to support the SolidFire storage platform.
Examples
- name: Initialize new cluster
tags:
- elementsw_cluster
na_elementsw_cluster:
hostname: "{{ elementsw_hostname }}"
username: "{{ elementsw_username }}"
password: "{{ elementsw_password }}"
management_virtual_ip: 10.226.108.32
storage_virtual_ip: 10.226.109.68
replica_count: 2
accept_eula: true
nodes:
- 10.226.109.72
- 10.226.109.74
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Success message Returned: success |