purestorage.flasharray.purefa_kmip 模块 – 管理 FlashArray KMIP 服务器对象
注意
此模块是 purestorage.flasharray 集合 (版本 1.32.0) 的一部分。
如果您正在使用 ansible 包,则可能已安装此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用: ansible-galaxy collection install purestorage.flasharray。您需要其他要求才能使用此模块,请参阅 要求 获取详细信息。
要在剧本中使用它,请指定: purestorage.flasharray.purefa_kmip。
purestorage.flasharray 1.10.0 中的新增功能
概要
- 管理 FlashArray KMIP 服务器对象 
要求
在执行此模块的主机上需要以下要求。
- python >= 3.3 
- purestorage >= 1.19 
- py-pure-client >= 1.26.0 
- netaddr 
- requests 
- pycountry 
- urllib3 
参数
| 参数 | 注释 | 
|---|---|
| 具有管理员权限用户的 FlashArray API 令牌。 | |
| KMIP 服务器 CA 证书的文本。 包含“—–BEGIN CERTIFICATE—–”和“—–END CERTIFICATE—–”行 长度不超过 3000 个字符 | |
| 用于验证 FlashArray 对 KMIP 服务器的真实性的现有证书的名称。 使用 *purestorage.flasharray.purefa_certs* 模块创建证书。 | |
| 禁用调试日志中的不安全证书警告 选项 
 | |
| FlashArray 管理 IPv4 地址或主机名。 | |
| KMIP 服务器对象的名称 | |
| 模块要执行的操作 选项 
 | |
| 已配置 KMIP 服务器的 URI 列表。 | 
备注
注意
- 此模块需要 - purestorage和- py-pure-clientPython 库
- 特定模块可能需要其他 Python 库。 
- 如果 *fa_url* 和 *api_token* 参数未直接传递给模块,则必须设置 - PUREFA_URL和- PUREFA_API环境变量
示例
- name: Create KMIP obejct
  purestorage.flasharray.purefa_kmip:
    name: foo
    certificate: bar
    ca_certificate: "{{lookup('file', 'example.crt') }}"
    uris:
    - 1.1.1.1:8888
    - 2.3.3.3:9999
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592
- name: Delete KMIP object
  purestorage.flasharray.purefa_kmip:
    name: foo
    state: absent
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592
- name: Update KMIP object
  purestorage.flasharray.purefa_kmip:
    name: foo
    ca_certificate: "{{lookup('file', 'example2.crt') }}"
    uris:
    - 3.3.3.3:8888
    - 4.4.4.4:9999
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592
