cisco.ucs.ucs_system_qos 模块 – 配置系统 QoS 设置

注意

此模块是 cisco.ucs 集合 (版本 1.14.0) 的一部分。

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

要安装它,请使用:ansible-galaxy collection install cisco.ucs。 您需要进一步的要求才能使用此模块,请参阅 要求 以了解详细信息。

要在 playbook 中使用它,请指定:cisco.ucs.ucs_system_qos

概要

  • 配置系统 QoS 设置

要求

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

  • ucsmsdk

参数

参数

注释

admin_state

字符串

QoS 策略的管理状态

选择

  • "disabled"

  • "enabled" ← (默认)

cos

字符串 / 必需

CoS 设置。 选择可以是 any 或 0-6。

drop

字符串

设置多播优化选项

选择

  • "drop" ← (默认)

  • "no-drop"

hostname

字符串 / 必需

Cisco UCS 管理器的 IP 地址或主机名。

模块可以与 UCS 平台模拟器 https://cs.co/ucspe 一起使用

mtu

字符串

MTU 大小。 选择可以是 fc、normal 或 0-4294967295。

默认值: "normal"

multicast_optimize

字符串

设置多播优化选项

选择

  • "false"

  • "no" ← (默认)

  • "true"

  • "yes"

password

字符串 / 必需

用于 Cisco UCS 管理器身份验证的密码。

port

整数

连接期间要使用的端口号(默认情况下,https 使用 443,http 连接使用 80)。

priority

字符串 / 必需

要配置的优先级

选择

  • "best-effort"

  • "bronze"

  • "fc"

  • "gold"

  • "platinum"

  • "silver"

proxy

字符串

如果 use_proxy 为 no,则指定用于连接的代理。 例如 ‘http://proxy.xy.z:8080

use_proxy

布尔值

如果为 no,将不使用系统环境变量定义的代理。

选择

  • false

  • true ← (默认)

use_ssl

布尔值

如果为 no,将使用 HTTP 连接而不是默认的 HTTPS 连接。

选择

  • false

  • true ← (默认)

username

字符串

用于 Cisco UCS 管理器身份验证的用户名。

默认值: "admin"

weight

字符串 / 必需

CoS 配置文件权重。 选择可以是 best-effort、none 或 0-10。

示例

- name:
  cisco.ucs.ucs_system_qos:
    priority: platinum
    admin_state: enabled
    multicast_optimize: no
    cos: '5'
    weight: '10'
    mtu: '9216'
    hostname: 192.168.99.100
    username: admin
    password: password

作者

  • Brett Johnson (@sdbrett)