purestorage.flasharray.purefa_hardware 模块 – 管理 FlashArray 硬件识别
注意
此模块是 purestorage.flasharray 集合 (版本 1.32.0) 的一部分。
如果您使用的是 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install purestorage.flasharray。您需要其他要求才能使用此模块,有关详细信息,请参阅 要求。
要在 playbook 中使用它,请指定:purestorage.flasharray.purefa_hardware。
purestorage.flasharray 1.24.0 中的新增功能
概要
- 启用或禁用 FlashArray 可视化指示灯 
要求
执行此模块的主机需要以下要求。
- python >= 3.3 
- purestorage >= 1.19 
- py-pure-client >= 1.26.0 
- netaddr 
- requests 
- pycountry 
- urllib3 
参数
| 参数 | 注释 | 
|---|---|
| 具有管理员权限用户的 FlashArray API 令牌。 | |
| 禁用调试日志中的不安全证书警告 选项 
 | |
| 组件识别 LED 的状态 选项 
 | |
| FlashArray 管理 IPv4 地址或主机名。 | |
| 硬件组件的名称 | 
备注
注意
- 此模块需要 - purestorage和- py-pure-clientPython 库
- 特定模块可能需要其他 Python 库。 
- 如果未直接将 *fa_url* 和 *api_token* 参数传递给模块,则必须设置 - PUREFA_URL和- PUREFA_API环境变量
示例
- name: Enable identification LED
  purestorage.flasharray.purefa_hardware:
    name: "CH1.FB1"
    enabled: true
    fa_url: 10.10.10.2
    api_token: T-68618f31-0c9e-4e57-aa44-5306a2cf10e3
- name: Disable identification LED
  purestorage.flasharray.purefa_hardware:
    name: "CH1.FB1"
    enabled: false
    fa_url: 10.10.10.2
    api_token: T-68618f31-0c9e-4e57-aa44-5306a2cf10e3
