hpe.nimble.hpe_nimble_partner module – Manage the HPE Nimble Storage Replication Partner
Note
This module is part of the hpe.nimble collection (version 1.1.4).
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 hpe.nimble
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: hpe.nimble.hpe_nimble_partner
.
New in hpe.nimble 1.0.0
Synopsis
Manage the replication partner on an HPE Nimble Storage group.
Requirements
The below requirements are needed on the host that executes this module.
Ansible 2.9 or later
Python 3.6 or later
HPE Nimble Storage SDK for Python
HPE Nimble Storage arrays running NimbleOS 5.0 or later
Parameters
Parameter |
Comments |
---|---|
Port number of partner control interface. Value -1 for an invalid port or a positive integer value up to 65535 representing the TCP/IP port. |
|
Port number of partner data interface. Value -1 for an invalid port or a positive integer value up to 65535 representing the TCP/IP port. |
|
Description of replication partner. |
|
IP address or hostname of partner interface. This must be the partner’s Group Management IP address. String of up to 64 alphanumeric characters, - and . and ‘:’ are allowed after first character. |
|
The Folder ID within the pool where volumes replicated from this partner will be created. This is not supported for pool partners. |
|
HPE Nimble Storage IP address. |
|
Indicates whether to match the upstream volume’s folder on the downstream. Choices:
|
|
Name of replication partner. String of up to 64 alphanumeric characters, - and . and ‘:’ are allowed after first character. |
|
HPE Nimble Storage password. |
|
Pause replication for the specified partner. Choices:
|
|
The pool name where volumes replicated from this partner will be created. Replica volumes created as clones ignore this parameter and are always created in the same pool as their parent volume. |
|
IP address or hostname of partner data interface. String of up to 64 alphanumeric characters, - and . and ‘:’ are allowed after first character. |
|
Resume replication for the specified partner. Choices:
|
|
Replication partner shared secret, used for mutual authentication of the partners. |
|
The replication partner operation. Choices:
|
|
Indicates whether to match the upstream volume’s folder on the downstream. |
|
Type of the subnet used to replicate to this partner. Choices:
|
|
Test connectivity to the specified partner. Choices:
|
|
Throttles used while replicating from/to this partner. All the throttles for the partner. |
|
HPE Nimble Storage user name. |
Notes
Note
This module does not support
check_mode
.
Examples
# if state is create, then create partner, fails if it exist or cannot create
# if state is present, then create partner if not present ,else success
- name: Create Partner
hpe.nimble.hpe_nimble_partner:
host: "{{ host }}" # upstream host
username: "{{ username }}"
password: "{{ password }}"
name: "{{ name | mandatory }}"
description: "{{ description }}"
downstream_hostname: "{{ downstream_hostname | mandatory }}"
secret: "{{ secret | mandatory }}"
subnet_label: "{{ subnet_label | mandatory }}"
state: "{{ state | default('present') }}"
- name: Delete Partner
hpe.nimble.hpe_nimble_partner:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
downstream_hostname: "{{ downstream_hostname | mandatory }}"
state: "absent"
- name: Test Partner
hpe.nimble.hpe_nimble_partner:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
downstream_hostname: "{{ downstream_hostname | mandatory }}"
state: "present"
test: true
- name: Pause Partner
hpe.nimble.hpe_nimble_partner:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
downstream_hostname: "{{ downstream_hostname | mandatory }}"
state: "present"
pause: true
- name: Resume Partner
hpe.nimble.hpe_nimble_partner:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
downstream_hostname: "{{ downstream_hostname | mandatory }}"
state: "present"
resume: true