第 3 章 自动化网格设计模式


本节中的自动化网格拓扑提供了您可以在环境中设计网格部署的示例。示例包括一个简单的、hydrid 节点部署,到部署大量自动化控制器实例的复杂模式,采用多个执行和跃点节点。

先决条件

  • 您检查了有关节点类型和关系的概念信息
注意

以下示例包括说明网格拓扑的镜像。镜像中的箭头表示对等方向。建立对等后,节点之间的连接允许双向通信。

3.1. 多个混合节点清单文件示例

这个示例清单文件部署由多个混合节点组成的 control plane。control plane 中的节点会自动相互连接。

[automationcontroller]
aap_c_1.example.com
aap_c_2.example.com
aap_c_3.example.com
Copy to Clipboard Toggle word wrap

下图显示了此网格网络的拓扑。

The topology map of the multiple hybrid node mesh configuration consists of an automation controller group.The automation controller group contains three hybrid nodes: aap_c_1, aap_c_2, and aap_c_3.The control nodes are peered to one another as follows: aap_c_3 is peered to aap_c_1 and aap_c_1 is peered to aap_c_2.

control plane 中节点的默认 node_typehybrid。您可以在 [automationcontroller group] 中将单个节点的 node_type 明确设置为 hybrid

[automationcontroller]
aap_c_1.example.com node_type=hybrid
aap_c_2.example.com node_type=hybrid
aap_c_3.example.com node_type=hybrid
Copy to Clipboard Toggle word wrap

另外,您还可以在 [automationcontroller] 组中设置所有节点的 node-type。当您将新节点添加到 control plane 时,它们会自动设置为混合节点。

[automationcontroller]
aap_c_1.example.com
aap_c_2.example.com
aap_c_3.example.com

[automationcontroller:vars]
node_type=hybrid
Copy to Clipboard Toggle word wrap

如果您认为以后可能会将控制节点添加到 control plane 中,最好为混合节点定义一个单独的组,并为组设置 node-type

[automationcontroller]
aap_c_1.example.com
aap_c_2.example.com
aap_c_3.example.com

[hybrid_group]
aap_c_1.example.com
aap_c_2.example.com
aap_c_3.example.com

[hybrid_group:vars]
node_type=hybrid
Copy to Clipboard Toggle word wrap
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部