purestorage.flashblade.purefb_target 模块 – 管理 FlashBlade 的远程 S3 兼容目标

注意

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

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

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

要在 Playbook 中使用它,请指定: purestorage.flashblade.purefb_target

purestorage.flashblade 1.0.0 中的新增功能

概要

  • 管理 FlashBlade 系统的远程 S3 兼容目标

  • 用于非 FlashBlade 目标。

  • 对于 FlashBlade 目标,请使用 purestorage.flashblade.purefb_connect

要求

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

  • python >= 3.9

  • py-pure-client

  • purity_fb >= 1.12.2

  • netaddr

  • datetime

  • pytz

  • distro

  • pycountry

  • urllib3

参数

参数

注释

address

string

S3 兼容目标的地址(IP 或 FQDN)

api_token

string

用于管理员特权用户的 FlashBlade API 令牌。

disable_warnings

boolean

在 purestorage.flashblade 1.18.0 中添加

禁用不安全的证书警告

选项

  • false ← (默认)

  • true

fb_url

string

FlashBlade 管理 IP 地址或主机名。

name

string / 必填

S3 兼容目标的名称(IP 或 FQDN)

state

string

创建或删除远程目标

选项

  • "absent"

  • "present" ← (默认)

注意

注意

  • 此模块需要 purity_fb Python 库

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

示例

- name: Create a connection to remote S3-capable target
  purestorage.flashblade.purefb_target:
    name: target_1
    address: 10.10.10.20
    fb_url: 10.10.10.2
    api_token: T-89faa581-c668-483d-b77d-23c5d88ba35c
- name: Delete connection to remote S3-capable system
  purestorage.flashblade.purefb_target:
    state: absent
    name: target_1
    target_api: 9c0b56bc-f941-f7a6-9f85-dcc3e9a8f7d6
    fb_url: 10.10.10.2
    api_token: T-89faa581-c668-483d-b77d-23c5d88ba35c

作者

  • Pure Storage Ansible 团队 (@sdodsley)