ibm.storage_virtualize.ibm_sv_manage_ip_partnership 模块 – 此模块管理 IBM Storage Virtualize 系列系统上的 IP 伙伴关系
注意
此模块是 ibm.storage_virtualize 集合(版本 2.5.0)的一部分。
如果您正在使用 ansible
包,您可能已经安装了这个集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install ibm.storage_virtualize
。
要在 playbook 中使用它,请指定:ibm.storage_virtualize.ibm_sv_manage_ip_partnership
。
ibm.storage_virtualize 1.9.0 中的新增功能
概要
用于在本地和远程系统上管理“mkippartnership”、“rmpartnership”和“chpartnership”命令的 Ansible 接口。
参数
参数 |
注释 |
---|---|
指定可用于后台复制操作的聚合链路带宽的最大百分比。这是一个从 0 到 100 的数值。默认值为 50。 当 state=present 时有效。 |
|
Storage Virtualize 系统的主机名或管理 IP。 |
|
指定是否为此伙伴关系启用压缩。 当 state=present 时有效。 选项
|
|
Storage Virtualize 系统的域。 当主机名用于参数 clustername 时有效。 |
|
指定用于 Storage Virtualize 系统的 WAN 链路 1 的端口集名称。 当 state=present 时有效,用于创建 IP 伙伴关系。 |
|
指定用于 Storage Virtualize 系统的 WAN 链路 2 的端口集名称。 当 state=present 时有效,用于创建 IP 伙伴关系。 |
|
指定两个集群系统(系统)之间 RC 链路的聚合带宽,以兆比特每秒 (Mbps) 为单位。这是一个从 1 到 100000 的数值。 当 state=present 时有效。 |
|
调试日志文件的路径。 |
|
Storage Virtualize 系统的 REST API 密码。 如果未使用 token 验证用户身份,则需要参数 username 和 password。 |
|
指定伙伴系统的伙伴关系 ID。 当 state=present 时,用于修改现有的 IP 伙伴关系。 当 state=absent 时,用于删除现有的 IP 伙伴关系。 |
|
指定伙伴系统 IP 地址,可以是 IPv4 或 IPv6。 当 state=present 时,用于创建 IP 伙伴关系。 |
|
远程 Storage Virtualize 系统的主机名或管理 IP。 |
|
远程 Storage Virtualize 系统的域。 当主机名用于参数 remote_clustername 时有效。 |
|
指定用于远程 Storage Virtualize 系统的 WAN 链路 1 的端口集名称。 当 state=present 时有效,用于创建 IP 伙伴关系。 |
|
指定用于远程 Storage Virtualize 系统的 WAN 链路 2 的端口集名称。 当 state=present 时有效,用于创建 IP 伙伴关系。 |
|
远程 Storage Virtualize 系统的 REST API 密码。 如果未使用 remote_token 验证用户身份,则需要参数 remote_username 和 remote_password。 |
|
用于验证远程 Storage Virtualize 系统上用户的身份验证令牌。 要生成令牌,请使用 ibm.storage_virtualize.ibm_svc_auth 模块。 |
|
远程 Storage Virtualize 系统的 REST API 用户名。 如果未使用 remote_token 验证用户身份,则需要参数 remote_username 和 remote_password。 |
|
验证远程 Storage Virtualize 系统的证书。 选项
|
|
创建或更新( 选项
|
|
用于验证 Storage Virtualize 系统上用户的身份验证令牌。 要生成令牌,请使用 ibm.storage_virtualize.ibm_svc_auth 模块。 |
|
指定伙伴关系的 Internet 协议 (IP) 地址格式。 当 state=present 时有效。 选项
|
|
Storage Virtualize 系统的 REST API 用户名。 如果未使用 token 验证用户身份,则需要参数 username 和 password。 |
|
验证本地 Storage Virtualize 系统的证书。 选项
|
注释
注意
此模块支持
check_mode
。
示例
- name: Create an IP partnership
ibm.storage_virtualize.ibm_sv_manage_ip_partnership:
clustername: "{{ clustername }}"
domain: "{{ domain }}"
username: "{{ username }}"
password: "{{ password }}"
remote_clustername: "{{ remote_clustername }}"
remote_domain: "{{ remote_domain }}"
remote_username: "{{ remote_username }}"
remote_password: "{{ remote_password }}"
log_path: "/tmp/debug.log"
remote_clusterip: "{{ partner_ip }}"
type: "ipv4"
linkbandwidthmbits: 100
backgroundcopyrate: 50
compressed: yes
link1: "{{ portsetname }}"
remote_link1: "{{ remote_portsetname}}"
state: "present"
- name: Update an IP partnership
ibm.storage_virtualize.ibm_sv_manage_ip_partnership:
clustername: "{{ clustername }}"
domain: "{{ domain }}"
username: "{{ username }}"
password: "{{ password }}"
remote_clustername: "{{ remote_clustername }}"
remote_domain: "{{ remote_domain }}"
remote_username: "{{ remote_username }}"
remote_password: "{{ remote_password }}"
log_path: "/tmp/debug.log"
remote_cluster_id: "{{ cluster_id }}"
linkbandwidthmbits: 110
backgroundcopyrate: 60
compressed: no
state: "present"
- name: Remove an IP partnership
ibm.storage_virtualize.ibm_sv_manage_ip_partnership:
clustername: "{{ clustername }}"
username: "{{ username }}"
password: "{{ password }}"
remote_clustername: "{{ remote_clustername }}"
remote_username: "{{ remote_username }}"
remote_password: "{{ remote_password }}"
log_path: "/tmp/debug.log"
remote_cluster_id: "{{ cluster_id }}"
state: "absent"