netapp_eseries.santricity.na_santricity_global 模块 – NetApp E-Series 管理全局设置配置

注意

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

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

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

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

概要

  • 允许用户配置与 E-Series 存储系统关联的多个全局设置

参数

参数

注释

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:8443/devmgr/v2

api_username

字符串 / 必需

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

automatic_load_balancing

字符串

启用自动负载均衡,以允许动态管理和平衡来自主机的传入流量并使其在两个控制器之间保持均衡。

自动负载均衡需要启用主机连接报告。

选项

  • "enabled"

  • "disabled"

cache_block_size

整数

缓存块大小。

存储系统上的所有卷共享相同的缓存空间;因此,这些卷只能有一个缓存块大小。

请参阅 netapp_eseries.santricity.na_santricity_facts 获取可用大小。

cache_flush_threshold

整数

这是允许在刷新之前保留在存储阵列缓存上的未写入数据量的百分比阈值。

controller_shelf_id

整数

这是包含控制器的驱动器机箱的标识符。

默认值: 0

default_host_type

字符串

存储系统的默认主机类型。

可以指定以下名称之一:Linux DM-MP、VMWare、Windows、Windows Clustered,或者在 netapp_eseries.santricity.na_santricity_facts 中可以找到的主机类型索引。

host_connectivity_reporting

字符串

启用主机连接报告,以允许监视主机连接是否存在连接和多路径驱动程序问题。

automatic_load_balancing==enabled 时,则必须启用 netapp_eseries.santricity.host_connectivity_reporting

选项

  • "enabled"

  • "disabled"

login_banner_message

字符串

在登录页面之前显示的文本消息。

login_banner_message==”” 将删除任何现有横幅消息。

name

别名:label

字符串

设置 E-Series 存储系统的名称

此标签/名称不必是唯一的。

长度最多为 30 个字符。

ssid

字符串

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

默认值: "1"

validate_certs

布尔值

是否应验证 https 证书?

选项

  • false

  • true ← (默认)

备注

注意

  • 支持检查模式。

  • 此模块需要 Web Services API v1.3 或更高版本。

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

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

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

示例

- name: Set the storage-system name
  na_santricity_global:
    ssid: "1"
    api_url: "https://192.168.1.100:8443/devmgr/v2"
    api_username: "admin"
    api_password: "adminpass"
    validate_certs: true
    name: myArrayName
    cache_block_size: 32768
    cache_flush_threshold: 80
    automatic_load_balancing: enabled
    default_host_type: Linux DM-MP
- name: Set the storage-system name
  na_santricity_global:
    ssid: "1"
    api_url: "https://192.168.1.100:8443/devmgr/v2"
    api_username: "admin"
    api_password: "adminpass"
    validate_certs: true
    name: myOtherArrayName
    cache_block_size: 8192
    cache_flush_threshold: 60
    automatic_load_balancing: disabled
    default_host_type: 28

返回值

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

描述

array_name

字符串

当前存储阵列的名称

返回:成功时

示例: "arrayName"

automatic_load_balancing

字符串

是否启用了自动负载均衡功能

返回:成功时

示例: "enabled"

cache_settings

字典

当前缓存块大小和刷新阈值

返回:成功时

示例: {"cache_block_size": 32768, "cache_flush_threshold": 80}

changed

布尔值

全局设置是否已更改

返回:成功时

示例: true

controller_shelf_id

整数

包含控制器的驱动器机箱的标识符。

返回:成功时

示例: 99

default_host_type_index

整数

当前默认主机类型索引

返回:成功时

示例: 28

host_connectivity_reporting

字符串

主机连接报告功能是否已启用

返回:成功时

示例: "enabled"

login_banner_message

字符串

当前横幅消息

返回:成功时

示例: "这里是横幅消息!"

作者

  • Michael Price (@lmprice)

  • Nathan Swartz (@swartzn)

  • Vu Tran (@VuTran007)