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。
要在剧本中使用它,请指定: ibm.storage_virtualize.ibm_sv_manage_ip_partnership。
ibm.storage_virtualize 1.9.0 中的新增功能
概要
- Ansible 接口,用于管理本地和远程系统上的“mkippartnership”、“rmpartnership”和“chpartnership”命令。 
参数
| 参数 | 注释 | 
|---|---|
| 指定可用于后台复制操作的聚合链路带宽的最大百分比。这是一个 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 模块。 | |
| 指定伙伴关系的互联网协议 (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"
