hpe.nimble.hpe_nimble_snapshot_collection module – Manage the HPE Nimble Storage snapshot collections
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
.
To use it in a playbook, specify: hpe.nimble.hpe_nimble_snapshot_collection
.
New in version 1.0.0: of hpe.nimble
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 |
---|---|
External management agent type for snapshots being created as part of snapshot collection. |
|
Allow applications to write to created snapshot(s). Mandatory and must be set to ‘true’ for VSS application synchronized snapshots. Choices:
|
|
Change name of the existing snapshot collection. |
|
Text description of snapshot collection. |
|
Do not perform application synchronization for this snapshot. Create a crash-consistent snapshot instead. Choices:
|
|
Number of seconds after which this snapcoll is considered expired by the snapshot TTL. A value of 0 indicates that the snapshot never expires, 1 indicates that the snapshot uses a group-level configured TTL value and any other value indicates the number of seconds. |
|
Forcibly delete the specified snapshot collection even if it is the last replicated snapshot. Doing so could lead to full re-seeding at the next replication. Choices:
|
|
HPE Nimble Storage IP address. |
|
Invoke snapshot request on upstream partner. This operation is not supported for synchronous replication volume collections. Choices:
|
|
Is externally triggered. Choices:
|
|
Key-value pairs that augment a snapshot collection attributes. List of key-value pairs. Keys must be unique and non-empty. |
|
Name of the snapshot collection. |
|
HPE Nimble Storage password. |
|
Specifies the partner name that the snapshots in this snapshot collection are replicated to. |
|
Skip consistency check for database files on this snapshot. This option only applies to volume collections with application synchronization set to VSS, application ID set to MS Exchange 2010 or later with Database Availability Group (DAG), snap_verify option set to true, and disable_appsync option set to false. Choices:
|
|
Run verification tool on this snapshot. This option can only be used with a volume collection that has application synchronization. Choices:
|
|
Start with snapshot set online. Choices:
|
|
The snapshot collection operation. Choices:
|
|
HPE Nimble Storage user name. |
|
List of snapshot attributes for snapshots being created as part of snapshot collection creation. List of volumes with per snapshot attributes. |
|
Parent volume collection name. |
Examples
# if state is create , then create a snapshot collection if not present. Fails if already present.
# if state is present, then create a snapshot collection if not present. Succeeds if it already exists
- name: Create snapshot collection if not present
hpe.nimble.hpe_nimble_snapshot_collection:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
state: "{{ state | default('present') }}"
name: "{{ name | mandatory}}"
volcoll: "{{ volcoll | mandatory}}"
description: "{{ description }}"
- name: Delete snapshot collection (must be offline)
hpe.nimble.hpe_nimble_snapshot_collection:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
name: "{{ name }}"
volcoll: "{{ volcoll }}"
state: absent
Authors
HPE Nimble Storage Ansible Team (@ar-india)