Allow for dynamically scaling automation mesh in dev env

This commit is contained in:
Shane McDonald
2021-07-22 19:30:00 -04:00
committed by Alan Rominger
parent 9881bb72b8
commit 460c7c3379
14 changed files with 71 additions and 186 deletions

View File

@@ -29,7 +29,7 @@ backend nodes
http-request set-header X-Forwarded-Port %[dst_port]
http-request add-header X-Forwarded-Proto https if { ssl_fc }
option httpchk HEAD / HTTP/1.1\r\nHost:localhost
{% for i in range(cluster_node_count|int) %}
{% for i in range(control_plane_node_count|int) %}
{% set container_postfix = loop.index %}
server tools_awx_{{ container_postfix }} tools_awx_{{ container_postfix }}:8013 check
{% endfor %}
@@ -37,7 +37,7 @@ backend nodes
backend nodes_ssl
mode tcp
balance roundrobin
{% for i in range(cluster_node_count|int) %}
{% for i in range(control_plane_node_count|int) %}
{% set container_postfix = loop.index %}
server tools_awx_{{ container_postfix }} tools_awx_{{ container_postfix }}:8043 check
{% endfor %}