community.general.ss_3par_cpg 模块 – 管理 HPE StoreServ 3PAR CPG

注意

此模块是 community.general 集合 (版本 10.1.0) 的一部分。

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

要安装它,请使用:ansible-galaxy collection install community.general。您需要其他要求才能使用此模块,请参阅 需求 以了解详情。

要在剧本中使用它,请指定:community.general.ss_3par_cpg

概要

  • 在 HPE 3PAR 上创建和删除 CPG。

需求

在执行此模块的主机上需要以下需求。

  • hpe3par_sdk >= 1.0.2。使用 pip install hpe3par_sdk 安装。

  • 3PAR 存储阵列上应启用 WSAPI 服务。

参数

参数

注释

cpg_name

字符串 / 必需

CPG 的名称。

disk_type

字符串

指定物理磁盘必须具有指定的设备类型。

选项

  • "FC"

  • "NL"

  • "SSD"

domain

字符串

指定对象将驻留其中的域的名称。

growth_increment

字符串

指定增长增量(以 MiB、GiB 或 TiB 为单位),每次自动增长操作创建的逻辑磁盘存储量。

growth_limit

字符串

指定自动增长操作限制为指定的存储量,该存储量设置增长限制(以 MiB、GiB 或 TiB 为单位)。

growth_warning

字符串

指定使用逻辑磁盘空间的阈值(以 MiB、GiB 或 TiB 为单位),超过此阈值将导致警告警报。

high_availability

字符串

指定布局必须支持一个端口对、一个机箱或一个存储库的故障。

选项

  • "PORT"

  • "CAGE"

  • "MAG"

raid_type

字符串

指定逻辑磁盘的 RAID 类型。

选项

  • "R0"

  • "R1"

  • "R5"

  • "R6"

secure

布尔值

指定在通信时是否需要验证证书。

选项

  • false ← (默认)

  • true

set_size

整数

指定以 chunklet 数量表示的集合大小。

state

字符串 / 必需

指定的 CPG 是否应该存在。

选项

  • "present"

  • "absent"

storage_system_ip

字符串 / 必需

存储系统 IP 地址。

storage_system_password

字符串 / 必需

存储系统密码。

storage_system_username

字符串 / 必需

存储系统用户名。

属性

属性

支持

描述

check_mode

支持:不支持

可以在 check_mode 下运行,并在不修改目标的情况下返回更改状态预测。

diff_mode

支持:不支持

在差异模式下,将返回有关已更改内容(或可能需要在 check_mode 下更改)的详细信息。

示例

- name: Create CPG sample_cpg
  community.general.ss_3par_cpg:
    storage_system_ip: 10.10.10.1
    storage_system_username: username
    storage_system_password: password
    state: present
    cpg_name: sample_cpg
    domain: sample_domain
    growth_increment: 32000 MiB
    growth_limit: 64000 MiB
    growth_warning: 48000 MiB
    raid_type: R6
    set_size: 8
    high_availability: MAG
    disk_type: FC
    secure: false

- name: Delete CPG sample_cpg
  community.general.ss_3par_cpg:
    storage_system_ip: 10.10.10.1
    storage_system_username: username
    storage_system_password: password
    state: absent
    cpg_name: sample_cpg
    secure: false

作者

  • Farhan Nomani (@farhan7500)

  • Gautham P Hegde (@gautamphegde)