第 3 章 自动化网格设计模式
本节中的自动化网格拓扑提供了您可以在环境中设计网格部署的示例。示例包括一个简单的、hydrid 节点部署,到部署大量自动化控制器实例的复杂模式,采用多个执行和跃点节点。
先决条件
- 您检查了有关节点类型和关系的概念信息
注意
以下示例包括说明网格拓扑的镜像。镜像中的箭头表示对等方向。建立对等后,节点之间的连接允许双向通信。
3.1. 多个混合节点清单文件示例
这个示例清单文件部署由多个混合节点组成的 control plane。control plane 中的节点会自动相互连接。
[automationcontroller] aap_c_1.example.com aap_c_2.example.com aap_c_3.example.com
下图显示了此网格网络的拓扑。

control plane 中节点的默认 node_type
是 hybrid
。您可以在 [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
另外,您还可以在 [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
如果您认为以后可能会将控制节点添加到 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