netapp.elementsw.na_elementsw_account – NetApp Element Software Manage Accounts

Note

This plugin 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.

To use it in a playbook, specify: netapp.elementsw.na_elementsw_account.

New in version 2.7.0: of netapp.elementsw

Synopsis

  • Create, destroy, or update accounts on Element SW

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

attributes

dictionary

List of Name/Value pairs in JSON object format.

element_username

aliases: account_id

string / required

Unique username for this account. (May be 1 to 64 characters in length).

from_name

string

added in 2.8.0 of netapp.elementsw

ID or Name of the account to rename.

Required to create an account called ‘element_username’ by renaming ‘from_name’.

hostname

string / required

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.

initiator_secret

string

CHAP secret to use for the initiator. Should be 12-16 characters long and impenetrable.

The CHAP initiator secrets must be unique and cannot be the same as the target CHAP secret.

If not specified, a random secret is created.

password

aliases: pass

string / required

Password for the specified user.

state

string

Whether the specified account should exist or not.

Choices:

  • present ← (default)

  • absent

status

string

Status of the account.

target_secret

string

CHAP secret to use for the target (mutual CHAP authentication).

Should be 12-16 characters long and impenetrable.

The CHAP target secrets must be unique and cannot be the same as the initiator CHAP secret.

If not specified, a random secret is created.

username

aliases: user

string / required

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: Create Account
  na_elementsw_account:
    hostname: "{{ elementsw_hostname }}"
    username: "{{ elementsw_username }}"
    password: "{{ elementsw_password }}"
    state: present
    element_username: TenantA

- name: Modify Account
  na_elementsw_account:
    hostname: "{{ elementsw_hostname }}"
    username: "{{ elementsw_username }}"
    password: "{{ elementsw_password }}"
    state: present
    status: locked
    element_username: TenantA

- name: Rename Account
  na_elementsw_account:
    hostname: "{{ elementsw_hostname }}"
    username: "{{ elementsw_username }}"
    password: "{{ elementsw_password }}"
    state: present
    element_username: TenantA_Renamed
    from_name: TenantA

- name: Rename and modify Account
  na_elementsw_account:
    hostname: "{{ elementsw_hostname }}"
    username: "{{ elementsw_username }}"
    password: "{{ elementsw_password }}"
    state: present
    status: locked
    element_username: TenantA_Renamed
    from_name: TenantA

- name: Delete Account
  na_elementsw_account:
    hostname: "{{ elementsw_hostname }}"
    username: "{{ elementsw_username }}"
    password: "{{ elementsw_password }}"
    state: absent
    element_username: TenantA_Renamed

Authors