mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 05:30:18 -03:30
Create receptor mesh in cluster development environment
This commit is contained in:
committed by
Shane McDonald
parent
81f6d36a3a
commit
0184a7c267
@@ -14,6 +14,7 @@ services:
|
|||||||
- "8013:8013"
|
- "8013:8013"
|
||||||
- "8043:8043"
|
- "8043:8043"
|
||||||
- "1936:1936"
|
- "1936:1936"
|
||||||
|
|
||||||
awx-1:
|
awx-1:
|
||||||
user: ${CURRENT_UID}
|
user: ${CURRENT_UID}
|
||||||
container_name: tools_awx_1_1
|
container_name: tools_awx_1_1
|
||||||
@@ -31,9 +32,11 @@ services:
|
|||||||
- "../:/awx_devel"
|
- "../:/awx_devel"
|
||||||
- "./redis/redis_socket_ha_1:/var/run/redis/"
|
- "./redis/redis_socket_ha_1:/var/run/redis/"
|
||||||
- "./docker-compose/supervisor.conf:/etc/supervisord.conf"
|
- "./docker-compose/supervisor.conf:/etc/supervisord.conf"
|
||||||
|
- "./docker-compose-cluster/awx-1-receptor.conf:/etc/receptor/receptor.conf"
|
||||||
ports:
|
ports:
|
||||||
- "2222:2222"
|
- "2222:2222"
|
||||||
- "5899-5999:5899-5999"
|
- "5899-5999:5899-5999"
|
||||||
|
|
||||||
awx-2:
|
awx-2:
|
||||||
user: ${CURRENT_UID}
|
user: ${CURRENT_UID}
|
||||||
container_name: tools_awx_2_1
|
container_name: tools_awx_2_1
|
||||||
@@ -51,9 +54,11 @@ services:
|
|||||||
- "../:/awx_devel"
|
- "../:/awx_devel"
|
||||||
- "./redis/redis_socket_ha_2:/var/run/redis/"
|
- "./redis/redis_socket_ha_2:/var/run/redis/"
|
||||||
- "./docker-compose/supervisor.conf:/etc/supervisord.conf"
|
- "./docker-compose/supervisor.conf:/etc/supervisord.conf"
|
||||||
|
- "./docker-compose-cluster/awx-2-receptor.conf:/etc/receptor/receptor.conf"
|
||||||
ports:
|
ports:
|
||||||
- "2223:2222"
|
- "2223:2222"
|
||||||
- "7899-7999:7899-7999"
|
- "7899-7999:7899-7999"
|
||||||
|
|
||||||
awx-3:
|
awx-3:
|
||||||
user: ${CURRENT_UID}
|
user: ${CURRENT_UID}
|
||||||
container_name: tools_awx_3_1
|
container_name: tools_awx_3_1
|
||||||
@@ -71,9 +76,11 @@ services:
|
|||||||
- "../:/awx_devel"
|
- "../:/awx_devel"
|
||||||
- "./redis/redis_socket_ha_3:/var/run/redis/"
|
- "./redis/redis_socket_ha_3:/var/run/redis/"
|
||||||
- "./docker-compose/supervisor.conf:/etc/supervisord.conf"
|
- "./docker-compose/supervisor.conf:/etc/supervisord.conf"
|
||||||
|
- "./docker-compose-cluster/awx-3-receptor.conf:/etc/receptor/receptor.conf"
|
||||||
ports:
|
ports:
|
||||||
- "2224:2222"
|
- "2224:2222"
|
||||||
- "8899-8999:8899-8999"
|
- "8899-8999:8899-8999"
|
||||||
|
|
||||||
redis_1:
|
redis_1:
|
||||||
user: ${CURRENT_UID}
|
user: ${CURRENT_UID}
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
@@ -82,6 +89,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- "./redis/redis.conf:/usr/local/etc/redis/redis.conf"
|
- "./redis/redis.conf:/usr/local/etc/redis/redis.conf"
|
||||||
- "./redis/redis_socket_ha_1:/var/run/redis/"
|
- "./redis/redis_socket_ha_1:/var/run/redis/"
|
||||||
|
|
||||||
redis_2:
|
redis_2:
|
||||||
user: ${CURRENT_UID}
|
user: ${CURRENT_UID}
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
@@ -98,6 +106,14 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- "./redis/redis.conf:/usr/local/etc/redis/redis.conf"
|
- "./redis/redis.conf:/usr/local/etc/redis/redis.conf"
|
||||||
- "./redis/redis_socket_ha_3:/var/run/redis/"
|
- "./redis/redis_socket_ha_3:/var/run/redis/"
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:12
|
image: postgres:12
|
||||||
container_name: tools_postgres_1
|
container_name: tools_postgres_1
|
||||||
|
environment:
|
||||||
|
POSTGRES_HOST_AUTH_METHOD: trust
|
||||||
|
volumes:
|
||||||
|
- "awx_db:/var/lib/postgresql/data"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
awx_db:
|
||||||
|
|||||||
23
tools/docker-compose-cluster/awx-1-receptor.conf
Normal file
23
tools/docker-compose-cluster/awx-1-receptor.conf
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
- log-level: debug
|
||||||
|
|
||||||
|
- control-service:
|
||||||
|
service: control
|
||||||
|
filename: /var/run/receptor/receptor.sock
|
||||||
|
|
||||||
|
- tcp-listener:
|
||||||
|
port: 2200
|
||||||
|
|
||||||
|
- tcp-peer:
|
||||||
|
address: awx-2:2200
|
||||||
|
|
||||||
|
- work-command:
|
||||||
|
worktype: worker
|
||||||
|
command: ansible-runner
|
||||||
|
params: worker
|
||||||
|
|
||||||
|
- work-kubernetes:
|
||||||
|
worktype: ocp
|
||||||
|
namespace: receptor
|
||||||
|
image: quay.io/shanemcd/ee
|
||||||
|
authmethod: kubeconfig
|
||||||
23
tools/docker-compose-cluster/awx-2-receptor.conf
Normal file
23
tools/docker-compose-cluster/awx-2-receptor.conf
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
- log-level: debug
|
||||||
|
|
||||||
|
- control-service:
|
||||||
|
service: control
|
||||||
|
filename: /var/run/receptor/receptor.sock
|
||||||
|
|
||||||
|
- tcp-listener:
|
||||||
|
port: 2200
|
||||||
|
|
||||||
|
- tcp-peer:
|
||||||
|
address: awx-3:2200
|
||||||
|
|
||||||
|
- work-command:
|
||||||
|
worktype: worker
|
||||||
|
command: ansible-runner
|
||||||
|
params: worker
|
||||||
|
|
||||||
|
- work-kubernetes:
|
||||||
|
worktype: ocp
|
||||||
|
namespace: receptor
|
||||||
|
image: quay.io/shanemcd/ee
|
||||||
|
authmethod: kubeconfig
|
||||||
23
tools/docker-compose-cluster/awx-3-receptor.conf
Normal file
23
tools/docker-compose-cluster/awx-3-receptor.conf
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
- log-level: debug
|
||||||
|
|
||||||
|
- control-service:
|
||||||
|
service: control
|
||||||
|
filename: /var/run/receptor/receptor.sock
|
||||||
|
|
||||||
|
- tcp-listener:
|
||||||
|
port: 2200
|
||||||
|
|
||||||
|
- tcp-peer:
|
||||||
|
address: awx-1:2200
|
||||||
|
|
||||||
|
- work-command:
|
||||||
|
worktype: worker
|
||||||
|
command: ansible-runner
|
||||||
|
params: worker
|
||||||
|
|
||||||
|
- work-kubernetes:
|
||||||
|
worktype: ocp
|
||||||
|
namespace: receptor
|
||||||
|
image: quay.io/shanemcd/ee
|
||||||
|
authmethod: kubeconfig
|
||||||
@@ -90,6 +90,9 @@ autorestart = true
|
|||||||
stopsignal = KILL
|
stopsignal = KILL
|
||||||
stopasgroup = true
|
stopasgroup = true
|
||||||
killasgroup = true
|
killasgroup = true
|
||||||
|
redirect_stderr=true
|
||||||
|
stdout_logfile=/dev/fd/1
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
|
||||||
[group:tower-processes]
|
[group:tower-processes]
|
||||||
programs=awx-dispatcher,awx-receiver,awx-uwsgi,awx-daphne,awx-nginx,awx-wsbroadcast,awx-rsyslogd
|
programs=awx-dispatcher,awx-receiver,awx-uwsgi,awx-daphne,awx-nginx,awx-wsbroadcast,awx-rsyslogd
|
||||||
|
|||||||
Reference in New Issue
Block a user