netapp_eseries.santricity.na_santricity_iscsi_target module – NetApp E-Series manage iSCSI target configuration
Note
This module is part of the netapp_eseries.santricity collection (version 1.4.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_eseries.santricity
.
To use it in a playbook, specify: netapp_eseries.santricity.na_santricity_iscsi_target
.
Synopsis
Configure the settings of an E-Series iSCSI target
Parameters
Parameter |
Comments |
---|---|
The password to authenticate with the SANtricity Web Services Proxy or Embedded Web Services API. |
|
The url to the SANtricity Web Services Proxy or Embedded Web Services API. |
|
The username to authenticate with the SANtricity Web Services Proxy or Embedded Web Services API. |
|
Enable Challenge-Handshake Authentication Protocol (CHAP), utilizing this value as the password. When this value is specified, we will always trigger an update (changed=True). We have no way of verifying whether or not the password has changed. The chap secret may only use ascii characters with values between 32 and 126 decimal. The chap secret must be no less than 12 characters, but no greater than 57 characters in length. The chap secret is cleared when not specified or an empty string. |
|
The name/alias to assign to the iSCSI target. This alias is often used by the initiator software in order to make an iSCSI target easier to identify. |
|
Enable ICMP ping responses from the configured iSCSI ports. Choices:
|
|
The ID of the array to manage. This value must be unique for each array. Default: |
|
When an initiator initiates a discovery session to an initiator port, it is considered an unnamed discovery session if the iSCSI target iqn is not specified in the request. This option may be disabled to increase security if desired. Choices:
|
|
Should https certificates be validated? Choices:
|
Notes
Note
Check mode is supported.
Some of the settings are dependent on the settings applied to the iSCSI interfaces. These can be configured using ERROR while parsing: While parsing “M(na_santricity_iscsi_interface)” at index 115: Module name “na_santricity_iscsi_interface” is not a FQCN.
This module requires a Web Services API version of >= 1.3.
The E-Series Ansible modules require either an instance of the Web Services Proxy (WSP), to be available to manage the storage-system, or an E-Series storage-system that supports the Embedded Web Services API.
Embedded Web Services is currently available on the E2800, E5700, EF570, and newer hardware models.
ERROR while parsing: While parsing “M(netapp_e_storage_system)” at index 1: Module name “netapp_e_storage_system” is not a FQCN may be utilized for configuring the systems managed by a WSP instance.
Examples
- name: Enable ping responses and unnamed discovery sessions for all iSCSI ports
na_santricity_iscsi_target:
ssid: "1"
api_url: "https://192.168.1.100:8443/devmgr/v2"
api_username: "admin"
api_password: "adminpass"
validate_certs: true
name: myTarget
ping: true
unnamed_discovery: true
- name: Set the target alias and the CHAP secret
na_santricity_iscsi_target:
ssid: "1"
api_url: "https://192.168.1.100:8443/devmgr/v2"
api_username: "admin"
api_password: "adminpass"
validate_certs: true
name: myTarget
chap: password1234
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The alias assigned to the iSCSI target. Returned: on success Sample: |
|
The iqn (iSCSI Qualified Name), assigned to the iSCSI target. Returned: on success Sample: |
|
Success message Returned: on success Sample: |