purestorage.flasharray.purefa_proxy 模块 – 配置 FlashArray 电话回拨 HTTPS 代理设置

注意

此模块是 purestorage.flasharray 集合 (版本 1.32.0) 的一部分。

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

要安装它,请使用:ansible-galaxy collection install purestorage.flasharray。您需要满足其他要求才能使用此模块,有关详细信息,请参阅要求

要在 playbook 中使用它,请指定:purestorage.flasharray.purefa_proxy

purestorage.flasharray 1.0.0 中的新功能

概要

  • 设置或删除 HTTPS 电话回拨代理设置的配置。

要求

执行此模块的主机需要满足以下要求。

  • python >= 3.3

  • purestorage >= 1.19

  • py-pure-client >= 1.26.0

  • netaddr

  • requests

  • pycountry

  • urllib3

参数

参数

注释

api_token

字符串

具有管理员权限的用户的 FlashArray API 令牌。

disable_warnings

布尔值

在 purestorage.flasharray 1.29.0 中添加

在调试日志中禁用不安全的证书警告

选择

  • false ← (默认)

  • true

fa_url

字符串

FlashArray 管理 IPv4 地址或主机名。

host

字符串

代理主机名。

port

整数

代理 TCP/IP 端口号。

protocol

字符串

在 purestorage.flasharray 1.20.0 中添加

代理协议。

选择

  • "http"

  • "https" ← (默认)

state

字符串

设置或删除代理配置

选择

  • "absent"

  • "present" ← (默认)

注意

注意

  • 此模块需要 purestoragepy-pure-client Python 库

  • 特定模块可能需要其他 Python 库。

  • 如果 fa_urlapi_token 参数未直接传递给模块,则必须设置 PUREFA_URLPUREFA_API 环境变量

示例

- name: Delete exisitng proxy settings
  purestorage.flasharray.purefa_proxy:
    state: absent
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592

- name: Set proxy settings
  purestorage.flasharray.purefa_proxy:
    host: purestorage.com
    port: 8080
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592

作者

  • Pure Storage ansible 团队 (@sdodsley)