netapp.storagegrid.na_sg_grid_ha_group 模块 – 管理 StorageGRID 上的高可用性 (HA) 组配置。
注意
此模块是 netapp.storagegrid 集合 (版本 21.13.0) 的一部分。
如果您使用的是 ansible 包,则可能已安装此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install netapp.storagegrid。
要在 playbook 中使用它,请指定:netapp.storagegrid.na_sg_grid_ha_group。
netapp.storagegrid 21.10.0 中的新增功能
概要
- 在 NetApp StorageGRID 上创建、更新、删除 HA 组。 
参数
| 参数 | 注释 | 
|---|---|
| StorageGRID 管理节点 REST API 的 URL。 | |
| API 请求的授权令牌 | |
| HA 组的描述。 | |
| 网关 IP 和 VIP 子网的 CIDR。 | |
| HA 组 ID。 可用于修改或删除操作。 | |
| 一组 StorageGRID 节点接口对。 主要接口首先指定,然后按故障转移顺序指定其他接口对。 | |
| 要绑定的接口。eth0 对应于网格网络,eth1 对应于管理网络,eth2 对应于客户端网络。 | |
| StorageGRID 节点的名称。 | |
| HA 组的名称。 | |
| 指定的 HA 组是否存在。 选项 
 | |
| 是否应验证 https 证书? 选项 
 | |
| 虚拟 IP 地址列表。 | 
备注
注意
- 以 - na_sg为前缀的模块旨在管理 NetApp StorageGRID。
示例
- name: create HA Group
  netapp.storagegrid.na_sg_grid_ha_group:
    api_url: "https://<storagegrid-endpoint-url>"
    auth_token: "storagegrid-auth-token"
    validate_certs: false
    state: present
    name: Site1-HA-Group
    description: "Site 1 HA Group"
    gateway_cidr: 192.168.50.1/24
    virtual_ips: 192.168.50.5
    interfaces:
      - node: SITE1-ADM1
        interface: eth2
      - node: SITE1-G1
        interface: eth2
- name: add VIP to HA Group
  netapp.storagegrid.na_sg_grid_ha_group:
    api_url: "https://<storagegrid-endpoint-url>"
    auth_token: "storagegrid-auth-token"
    validate_certs: false
    state: present
    name: Site1-HA-Group
    description: "Site 1 HA Group"
    gateway_cidr: 192.168.50.1/24
    virtual_ips: 192.168.50.5,192.168.50.6
    interfaces:
      - node: SITE1-ADM1
        interface: eth2
      - node: SITE1-G1
        interface: eth2
- name: rename HA Group
  netapp.storagegrid.na_sg_grid_ha_group:
    api_url: "https://<storagegrid-endpoint-url>"
    auth_token: "storagegrid-auth-token"
    validate_certs: false
    state: present
    ha_group_id: 00000000-0000-0000-0000-000000000000
    name: Site1-HA-Group-New-Name
    description: "Site 1 HA Group"
    gateway_cidr: 192.168.50.1/24
    virtual_ips: 192.168.50.5
    interfaces:
      - node: SITE1-ADM1
        interface: eth2
      - node: SITE1-G1
        interface: eth2
- name: delete HA Group
  netapp.storagegrid.na_sg_grid_ha_group:
    api_url: "https://<storagegrid-endpoint-url>"
    auth_token: "storagegrid-auth-token"
    validate_certs: false
    state: absent
    name: Site1-HA-Group
返回值
常见的返回值已在此处记录,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 返回有关 StorageGRID HA 组的信息。 返回:成功 示例:  | 
