netapp_eseries.santricity.netapp_e_amg 模块 – NetApp E 系列创建、删除和更新异步镜像组

注意

此模块是 netapp_eseries.santricity 集合(版本 1.4.1)的一部分。

如果您正在使用 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用:ansible-galaxy collection install netapp_eseries.santricity

要在 playbook 中使用它,请指定:netapp_eseries.santricity.netapp_e_amg

netapp_eseries.santricity 2.2.0 中的新增功能

概要

  • 允许创建、删除和更新 NetApp E 系列存储阵列的异步镜像组

参数

参数

注释

api_password

字符串 / 必需

用于使用 SANtricity Web Services Proxy 或嵌入式 Web Services API 进行身份验证的密码。

api_url

字符串 / 必需

SANtricity Web Services Proxy 或嵌入式 Web Services API 的 URL。示例 https://prod-1.wahoo.acme.com/devmgr/v2

api_username

字符串 / 必需

用于使用 SANtricity Web Services Proxy 或嵌入式 Web Services API 进行身份验证的用户名。

interfaceType

字符串

如果光纤和 iSCSI 都可用,则要使用的预期协议。

选择

  • "iscsi"

  • "fibre"

manualSync

布尔值

将其设置为 true 将导致忽略其他同步值

选择

  • false ← (默认)

  • true

name

字符串 / 必需

您希望定位或创建的异步阵列的名称。

如果存在 state 并且找不到该名称,它将尝试创建。

new_name

字符串

新的异步阵列名称

recoveryWarnThresholdMinutes

整数

恢复点警告阈值(分钟)。当最后一个良好故障点的使用年限超过此值时,将警告用户

默认值: 20

repoUtilizationWarnThreshold

整数

恢复点警告阈值

默认值: 80

secondaryArrayId

字符串 / 必需

要在镜像过程中使用的辅助阵列的 ID

ssid

字符串

要管理的阵列的 ID。此值对于每个阵列必须是唯一的。

默认值: "1"

state

字符串 / 必需

state 为 present 将创建或更新异步镜像组。

state 为 absent 将删除异步镜像组。

选择

  • "absent"

  • "present"

syncIntervalMinutes

整数

同步间隔(分钟)

默认值: 10

syncWarnThresholdMinutes

整数

用于通知用户定期同步花费太长时间才能完成的阈值(分钟)。

默认值: 10

validate_certs

布尔值

是否应验证 https 证书?

选择

  • false

  • true ← (默认)

备注

注意

  • E 系列 Ansible 模块需要 Web Services Proxy (WSP) 的实例才能管理存储系统,或者需要支持嵌入式 Web Services API 的 E 系列存储系统。

  • 嵌入式 Web 服务目前可在 E2800、E5700、EF570 和更新的硬件型号上使用。

  • netapp_eseries.santricity.netapp_e_storage_system 可用于配置 WSP 实例管理的系统。

示例

- name: AMG removal
  na_eseries_amg:
    state: absent
    ssid: "{{ ssid }}"
    secondaryArrayId: "{{amg_secondaryArrayId}}"
    api_url: "{{ netapp_api_url }}"
    api_username: "{{ netapp_api_username }}"
    api_password: "{{ netapp_api_password }}"
    new_name: "{{amg_array_name}}"
    name: "{{amg_name}}"
  when: amg_create

- name: AMG create
  netapp_e_amg:
    state: present
    ssid: "{{ ssid }}"
    secondaryArrayId: "{{amg_secondaryArrayId}}"
    api_url: "{{ netapp_api_url }}"
    api_username: "{{ netapp_api_username }}"
    api_password: "{{ netapp_api_password }}"
    new_name: "{{amg_array_name}}"
    name: "{{amg_name}}"
  when: amg_create

返回值

常见的返回值记录在此处,以下是此模块特有的字段

描述

msg

字符串

成功创建

已返回: 成功

示例: "{\"changed\": true, \"connectionType\": \"fc\", \"groupRef\": \"3700000060080E5000299C24000006E857AC7EEC\", \"groupState\": \"optimal\", \"id\": \"3700000060080E5000299C24000006E857AC7EEC\", \"label\": \"amg_made_by_ansible\", \"localRole\": \"primary\", \"mirrorChannelRemoteTarget\": \"9000000060080E5000299C24005B06E557AC7EEC\", \"orphanGroup\": false, \"recoveryPointAgeAlertThresholdMinutes\": 20, \"remoteRole\": \"secondary\", \"remoteTarget\": {\"nodeName\": {\"ioInterfaceType\": \"fc\", \"iscsiNodeName\": null, \"remoteNodeWWN\": \"20040080E5299F1C\"}, \"remoteRef\": \"9000000060080E5000299C24005B06E557AC7EEC\", \"scsiinitiatorTargetBaseProperties\": {\"ioInterfaceType\": \"fc\", \"iscsiinitiatorTargetBaseParameters\": null}}, \"remoteTargetId\": \"ansible2\", \"remoteTargetName\": \"Ansible2\", \"remoteTargetWwn\": \"60080E5000299F880000000056A25D56\", \"repositoryUtilizationWarnThreshold\": 80, \"roleChangeProgress\": \"none\", \"syncActivity\": \"idle\", \"syncCompletionTimeAlertThresholdMinutes\": 10, \"syncIntervalMinutes\": 10, \"worldWideName\": \"60080E5000299C24000006E857AC7EEC\"}"

作者

  • Kevin Hulquest (@hulquest)