Chapter 1. Planning for automation mesh in your Red Hat Ansible Automation Platform environment
The following topics contain information to help plan an automation mesh deployment in your Ansible Automation Platform environment. The subsequent sections explain the concepts that comprise automation mesh in addition to providing examples on how you can design automation mesh topologies. Simple to complex topology examples are included to illustrate the various ways you can deploy automation mesh.
1.1. About automation mesh
Automation mesh is an overlay network intended to ease the distribution of work across a large and dispersed collection of workers through nodes that establish peer-to-peer connections with each other using existing networks.
Red Hat Ansible Automation Platform 2 replaces Ansible Tower and isolated nodes with automation controller and automation hub. Automation controller provides the control plane for automation through its UI, Restful API, RBAC, workflows and CI/CD integration, while Automation Mesh can be used for setting up, discovering, changing or modifying the nodes that form the control and execution layers.
Automation Mesh introduces:
- Dynamic cluster capacity that scales independently, allowing you to create, register, group, ungroup and deregister nodes with minimal downtime.
- Control and execution plane separation that enables you to scale playbook execution capacity independently from control plane capacity.
- Deployment choices that are resilient to latency, reconfigurable without outage, and that dynamically re-reroute to choose a different path when outages may exist. mesh routing changes.
- Connectivity that includes bi-directional, multi-hopped mesh communication possibilities which are Federal Information Processing Standards (FIPS) compliant.
1.2. Control and execution planes
Automation mesh makes use of unique node types to create both the control and execution plane. Learn more about the control and execution plane and their node types before designing your automation mesh topology.
1.2.1. Control plane
The control plane consists of hybrid and control nodes. Instances in the control plane run persistent automation controller services such as the the web server and task dispatcher, in addition to project updates, and management jobs.
Hybrid nodes - this is the default node type for control plane nodes, responsible for automation controller runtime functions like project updates, management jobs and
ansible-runnertask operations. Hybrid nodes are also used for automation execution.
- Control nodes - control nodes run project and inventory updates and system jobs, but not regular jobs. Execution capabilities are disabled on these nodes.
1.2.2. Execution plane
The execution plane consists of execution nodes that execute automation on behalf of the control plane and have no control functions. Hop nodes serve to communicate. Nodes in the execution plane only run user-space jobs, and may be geographically separated, with high latency, from the control plane.
Execution nodes - Execution nodes run jobs under
podmanisolation. This node type is similar to isolated nodes.
- Hop nodes - similar to a jump host, hop nodes will route traffic to other execution nodes. Hop nodes cannot execute automation.
Peer relationships define node-to-node connections. You can define peers within the
[execution_nodes] groups or using the
1.2.4. Defining automation mesh node types
You can a define node type either by its default value assigned by the inventory group or by using the
node_type host variable. Specify the
node_type either as part of the inventory group or within the inventory
vars group. This section provides examples of how you can define node types in your inventory file. Nodes in
[execution_nodes] default execution node_type. Hybrid node types can be overridden to be control type via
node_type=control. Execution node type can be overridden to be hope node type via
[automationcontroller] default to the hybrid node type. In the below example, we create a single hybrid node:
Convert hybrid node types to control nodes using
[automationcontroller] control-plane-1.example.com node_type=control
Nodes in the`[execution_nodes]` inventory group default to the execution node type. In the below example, we create a single execution node:
Convert execution nodes to hop nodes using
[execution_nodes] execution-node-1.example.com node_type=hop
Create node-to-node connections using the
peers= host variable. The following example connects
[automationcontroller] control-plane-1.example.com peers=execution-node-1.example.com [automationcontroller:vars] node_type=control [execution_nodes] execution-node-1.example.com peers=execution-node-2.example.com execution-node-2.example.com
- See the example automation mesh topologies in this guide for more examples of how to implement mesh nodes.