• 博客
  • Ansible 社区论坛
  • 文档
Ansible Logo
Ansible 社区文档
Ansible

Ansible 入门

  • Ansible 入门指南
  • 执行环境入门指南

安装、升级和配置

  • 安装指南
  • Ansible 移植指南

使用 Ansible

  • 构建 Ansible 清单
  • 使用 Ansible 命令行工具
  • 使用 Ansible 剧本
  • 使用 Ansible vault 保护敏感数据
  • 使用 Ansible 模块和插件
  • 使用 Ansible 集合
  • 在 Windows 和 BSD 上使用 Ansible
  • Ansible 提示和技巧

为 Ansible 作出贡献

  • Ansible 社区指南
  • Ansible 集合贡献者指南
  • ansible-core 贡献者指南
  • 高级贡献者指南
  • Ansible 文档风格指南

扩展 Ansible

  • 开发者指南

常见的 Ansible 场景

  • 旧版公共云指南

网络自动化

  • 网络入门
  • 网络高级主题
  • 网络开发者指南

Ansible Galaxy

  • Galaxy 用户指南
  • Galaxy 开发者指南

参考和附录

  • 集合索引
    • Amazon 命名空间中的集合
    • Ansible 命名空间中的集合
    • Arista 命名空间中的集合
    • AWX 命名空间中的集合
    • Azure 命名空间中的集合
    • Check Point 命名空间中的集合
    • Chocolatey 命名空间中的集合
    • Cisco 命名空间中的集合
    • Cloud 命名空间中的集合
    • Cloudscale_ch 命名空间中的集合
    • Community 命名空间中的集合
    • Containers 命名空间中的集合
    • CyberArk 命名空间中的集合
    • Dell EMC 命名空间中的集合
    • F5 Networks 命名空间中的集合
    • Fortinet 命名空间中的集合
    • FRR 命名空间中的集合
    • Gluster 命名空间中的集合
    • Google 命名空间中的集合
    • Grafana 命名空间中的集合
    • Hetzner 命名空间中的集合
    • HPE 命名空间中的集合
    • IBM 命名空间中的集合
    • IEISystem 命名空间中的集合
    • Infinidat 命名空间中的集合
    • Infoblox 命名空间中的集合
    • Inspur 命名空间中的集合
    • Juniper Networks 命名空间中的集合
    • Kaytus 命名空间中的集合
    • Kubernetes 命名空间中的集合
    • KubeVirt 命名空间中的集合
    • LowlyDBA 命名空间中的集合
    • Mellanox 命名空间中的集合
    • Microsoft 命名空间中的集合
    • NetApp 命名空间中的集合
    • NetApp_eSeries 命名空间中的集合
    • NetBox 命名空间中的集合
    • NGINX IO 命名空间中的集合
    • OpenStack 命名空间中的集合
    • Open vSwitch 命名空间中的集合
    • oVirt 命名空间中的集合
    • Pure Storage 命名空间中的集合
      • Purestorage.Flasharray
      • Purestorage.Flashblade
        • 描述
        • 插件索引
    • Sensu 命名空间中的集合
    • ServiceNow 命名空间中的集合
    • Splunk 命名空间中的集合
    • T-Systems MMS 命名空间中的集合
    • Telekom MMS 命名空间中的集合
    • The Foreman 命名空间中的集合
    • VMware 命名空间中的集合
    • Vultr 命名空间中的集合
    • VyOS 命名空间中的集合
    • WTI 命名空间中的集合
  • 所有模块和插件的索引
  • 剧本关键词
  • 返回值
  • Ansible 配置设置
  • 控制 Ansible 的行为:优先级规则
  • YAML 语法
  • Python 3 支持
  • 解释器发现
  • 发布和维护
  • 测试策略
  • 健全性测试
  • 常见问题
  • 词汇表
  • Ansible 参考:模块实用程序
  • 特殊变量
  • Red Hat Ansible Automation Platform
  • Ansible Automation Hub
  • 记录 Ansible 输出

路线图

  • Ansible 路线图
  • ansible-core 路线图




Ansible
  • 集合索引
  • Pure Storage 命名空间中的集合
  • Purestorage.Flashblade
  • purestorage.flashblade.purefb_lag 模块 – 管理 FlashBlade 链路聚合组


purestorage.flashblade.purefb_lag 模块 – 管理 FlashBlade 链路聚合组

注意

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

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

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

要在剧本中使用它,请指定:purestorage.flashblade.purefb_lag。

purestorage.flashblade 1.7.0 中的新增功能

  • 概要

  • 要求

  • 参数

  • 注释

  • 示例

  • 返回值

概要

  • 维护 FlashBlade 链路聚合组

要求

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

  • python >= 3.9

  • py-pure-client

  • purity_fb >= 1.12.2

  • netaddr

  • datetime

  • pytz

  • distro

  • pycountry

  • urllib3

参数

参数

注释

api_token

字符串

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

disable_warnings

布尔值

在 purestorage.flashblade 1.18.0 中添加

禁用不安全证书警告

选项

  • false ← (默认)

  • true

fb_url

字符串

FlashBlade 管理 IP 地址或主机名。

name

字符串

链路聚合组的名称

默认值: "uplink"

ports

列表 / 元素=字符串

分配给 LAG 的网络端口的名称

格式应为 CHx.ETHy,其中 CHx 是机箱编号,ETHy 是以太网端口编号。

将使用来自机箱中每个结构模块的匹配端口对。

要修改 LAG 的所需端口,只需指定 LAG 所需的端口即可。当前 LAG 使用但未指定的任何端口都将与 LAG 断开连接。

state

字符串

定义是否应添加或删除 LAG

选项

  • "absent"

  • "present" ← (默认)

注释

注意

  • 此模块需要 purity_fb Python 库

  • 如果 *fb_url* 和 *api_token* 参数未直接传递给模块,则必须设置 PUREFB_URL 和 PUREFB_API 环境变量

示例

- name: Add LAG
  purestorage.flashblade.purefb_lag:
    name: lag2
    ports:
    - ch1.eth2
    fb_url: 10.10.10.2
    api_token: T-68618f31-0c9e-4e57-aa44-5306a2cf10e3

- name: Upate LAG
  purestorage.flashblade.purefb_lag:
    name: lag2
    ports:
    - ch1.eth2
    - ch1.eth4
    fb_url: 10.10.10.2
    api_token: T-68618f31-0c9e-4e57-aa44-5306a2cf10e3

- name: Delete LAG
  purestorage.flashblade.purefb_lag:
    name: lag2
    state: absent
    fb_url: 10.10.10.2
    api_token: T-68618f31-0c9e-4e57-aa44-5306a2cf10e3

返回值

常用返回值已记录在 此处,以下是此模块特有的字段

键

描述

lag

字典

描述 LAG 的字典。

已返回:成功

lag_speed

字符串

LAG 中所有端口的组合速度(以 Gb/s 为单位)

已返回:成功

mac_address

字符串

分配给 LAG 的唯一 MAC 地址

已返回:成功

port_speed

字符串

LAG 中每个端口的配置速度(以 Gb/s 为单位)

已返回:成功

status

字符串

LAG 的健康状态。

已返回:成功

作者

  • Pure Storage Ansible 团队 (@sdodsley)

集合链接

  • 问题跟踪器
  • 存储库(源代码)
上一篇 下一篇

© 版权所有 Ansible 项目贡献者。 上次更新于 2024 年 12 月 19 日。