cisco.ise.node_group 模块 – 节点组资源模块
注意
此模块是 cisco.ise 集合 (版本 2.9.6) 的一部分。
如果您正在使用 ansible 包,则可能已安装此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install cisco.ise。您需要其他要求才能使用此模块,有关详细信息,请参阅 要求。
要在 playbook 中使用它,请指定:cisco.ise.node_group。
cisco.ise 1.0.0 中的新增功能
概要
- 管理资源节点组的创建、更新和删除操作。 
- 此 API 在集群中创建一个节点组。节点组是一组 PSN。 
- 删除集群中现有的节点组。删除节点组不会删除节点,但节点之间不再执行故障转移。 
- 更新现有的节点组。 
注意
此模块具有相应的 动作插件。
要求
执行此模块的主机需要以下要求。
- ciscoisesdk >= 2.2.3 
- python >= 3.5 
参数
| 参数 | 注释 | 
|---|---|
| 节点组的描述。 | |
| ForceDelete 查询参数。即使节点组包含一个或多个节点,也强制删除该组。 选项 
 | |
| 用于 Identity Services Engine SDK 的标志,用于启用调试。 选项 
 | |
| Identity Services Engine 主机名。 | |
| 用于身份验证的 Identity Services Engine 密码。 | |
| RESTful HTTP 请求的超时(以秒为单位)。 默认:  | |
| 用于身份验证的 Identity Services Engine 用户名。 | |
| 告知 SDK 我们是否将 CSRF 令牌发送到 ISE 的 ERS API 的标志。 如果为 True,则 SDK 假设您的 ISE CSRF 检查已启用。 如果为 True,则假设您需要 SDK 为您自动管理 CSRF 令牌。 选项 
 | |
| 启用或禁用 SSL 证书验证的标志。 选项 
 | |
| 告知 SDK 使用哪个版本的 Identity Services Engine。 默认:  | |
| 用于 Identity Services Engine SDK 的标志,用于启用自动速率限制处理。 选项 
 | |
| 节点组的 marCache。 | |
| Cisco ISE 尝试执行缓存条目查询的次数。(0 - 5)。 | |
| 缓存条目查询超时的时间(以秒为单位)。(1 - 10)。 | |
| Cisco ISE 尝试执行 MAR 缓存条目复制的次数。(0 - 5)。 | |
| 缓存条目复制超时的时间(以秒为单位)。(1 - 10)。 | |
| 节点组的名称。 | |
| NodeGroupName 路径参数。现有节点组的名称。 | 
注释
注意
- 使用的 SDK 方法为 node_group.NodeGroup.create_node_group、node_group.NodeGroup.delete_node_group、node_group.NodeGroup.update_node_group。 
- 使用的路径为 post /api/v1/deployment/node-group、delete /api/v1/deployment/node-group/{nodeGroupName}、put /api/v1/deployment/node-group/{nodeGroupName}。 
- 不支持 - check_mode
- 插件在控制节点上运行,不使用任何 Ansible 连接插件,而是使用 Cisco ISE SDK 中的嵌入式连接管理器。 
- 以 ise_ 开头的参数由 Cisco ISE Python SDK 用于建立连接。 
另请参见
另请参见
- Cisco ISE 节点组文档
- 节点组 API 的完整参考。 
示例
- name: Create
  cisco.ise.node_group:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    state: present
    description: string
    marCache:
      query-attempts: 0
      query-timeout: 0
      replication-attempts: 0
      replication-timeout: 0
    name: string
- name: Update by name
  cisco.ise.node_group:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    state: present
    description: string
    marCache:
      query-attempts: 0
      query-timeout: 0
      replication-attempts: 0
      replication-timeout: 0
    name: string
    nodeGroupName: string
- name: Delete by name
  cisco.ise.node_group:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    state: absent
    forceDelete: true
    nodeGroupName: string
返回值
常见的返回值已记录在 此处,以下是此模块特有的字段。
| 键 | 描述 | 
|---|---|
| 包含 Cisco ISE Python SDK 返回的响应的字典或列表。 返回: 始终 示例:  | |
| 包含 Cisco ISE Python SDK 返回的响应的字典或列表。 返回: 始终 示例:  | 
