ibm.spectrum_virtualize.ibm_sv_manage_truststore_for_replication module – This module manages certificate trust stores for replication on IBM Spectrum Virtualize family storage systems
Note
This module is part of the ibm.spectrum_virtualize collection (version 2.0.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 ibm.spectrum_virtualize
.
To use it in a playbook, specify: ibm.spectrum_virtualize.ibm_sv_manage_truststore_for_replication
.
Note
The ibm.spectrum_virtualize collection has been renamed to ibm.storage_virtualize and will eventually be removed from Ansible. If you use content from ibm.spectrum_virtualize, please update FQCNs in your playbooks and roles! When creating new playbooks or roles, directly use content from ibm.storage_virtualize instead.
New in ibm.spectrum_virtualize 1.10.0
Synopsis
Ansible interface to manage mktruststore and rmtruststore commands.
This module transfers the certificate from a remote system to the local system.
This module works on SSH and uses paramiko to establish an SSH connection.
Once transfer is done successfully, it also adds the certificate to the trust store of the local system.
This module can be used to set up mutual TLS (mTLS) for policy-based replication inter-system communication using cluster endpoint certificates (usually system-signed which are exported by the ibm.spectrum_virtualize.ibm_sv_manage_ssl_certificate module).
Parameters
Parameter |
Comments |
---|---|
The hostname or management IP of the Spectrum Virtualize storage system. |
|
SSH client private key filename. By default, ~/.ssh/id_rsa is used. |
|
Path of debug log file. |
|
Specifies the name of the trust store. If not specified, the module generates a name automatically with format store_I(remote_clustername). |
|
Password for the Spectrum Virtualize storage system. Mandatory, when usesshkey=no. |
|
Specifies the name of the partner remote cluster with which mTLS partnership needs to be setup. |
|
Password for remote cluster. Applies when state=present to create a trust store. |
|
Username for remote cluster. Applies when state=present to create a trust store. |
|
Creates ( Choices:
|
|
Username for the Spectrum Virtualize storage system. |
|
For key-pair based SSH connection, set this field as “yes”. Provide full path of key in key_filename field. If not provided, default path of SSH key is used. Choices:
|
Notes
Note
This module supports
check_mode
.
Examples
- name: Create truststore
ibm.spectrum_virtualize.ibm_sv_manage_truststore_for_replication:
clustername: "{{clustername}}"
username: "{{username}}"
password: "{{password}}"
name: "{{name}}"
remote_clustername: "{{remote_clustername}}"
remote_username: "{{remote_username}}"
remote_password: "{{remote_password}}"
log_path: "{{log_path}}"
state: "present"
- name: Delete truststore
ibm.spectrum_virtualize.ibm_sv_manage_truststore_for_replication:
clustername: "{{clustername}}"
username: "{{username}}"
password: "{{password}}"
name: "{{name}}"
remote_clustername: "{{remote_clustername}}"
log_path: "{{log_path}}"
state: "absent"