mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 04:30:05 -03:30
Make the AWX nodes fully connected in the development environment (#10758)
This commit is contained in:
@@ -85,12 +85,19 @@
|
||||
dest: "{{ sources_dest }}/{{ compose_name }}"
|
||||
mode: '0600'
|
||||
|
||||
- name: Render Receptor Config(s) for Control Plane
|
||||
template:
|
||||
src: "receptor-awx.conf.j2"
|
||||
dest: "{{ sources_dest }}/receptor/receptor-awx-{{ item }}.conf"
|
||||
mode: '0600'
|
||||
with_sequence: start=1 end={{ control_plane_node_count }}
|
||||
|
||||
- name: Render Receptor Hop Config
|
||||
template:
|
||||
src: "receptor-hop.conf.j2"
|
||||
dest: "{{ sources_dest }}/receptor/receptor-hop.conf"
|
||||
mode: '0600'
|
||||
|
||||
|
||||
- name: Render Receptor Worker Config(s)
|
||||
template:
|
||||
src: "receptor-worker.conf.j2"
|
||||
|
||||
@@ -35,7 +35,7 @@ services:
|
||||
- "../../docker-compose/_sources/websocket_secret.py:/etc/tower/conf.d/websocket_secret.py"
|
||||
- "../../docker-compose/_sources/local_settings.py:/etc/tower/conf.d/local_settings.py"
|
||||
- "../../docker-compose/_sources/SECRET_KEY:/etc/tower/SECRET_KEY"
|
||||
- "../../docker-compose/receptor.conf:/etc/receptor/receptor.conf"
|
||||
- "../../docker-compose/_sources/receptor/receptor-awx-{{ loop.index }}.conf:/etc/receptor/receptor.conf"
|
||||
- "../../docker-compose-cluster/certs:/etc/receptor/certs"
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup"
|
||||
- "~/.kube/config:/var/lib/awx/.kube/config"
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
---
|
||||
- node:
|
||||
id: awx_{{ item }}
|
||||
|
||||
- log-level:
|
||||
debug
|
||||
|
||||
- tcp-listener:
|
||||
port: 2222
|
||||
|
||||
{% for i in range(item | int + 1, control_plane_node_count | int + 1) %}
|
||||
- tcp-peer:
|
||||
address: awx_{{ i }}:2222
|
||||
redial: true
|
||||
{% endfor %}
|
||||
|
||||
#- tls-server:
|
||||
# name: mutual-tls
|
||||
# cert: /etc/receptor/certs/awx.crt
|
||||
# key: /etc/receptor/certs/awx.key
|
||||
# requireclientcert: true
|
||||
# clientcas: /etc/receptor/certs/ca.crt
|
||||
|
||||
- control-service:
|
||||
service: control
|
||||
filename: /var/run/receptor/receptor.sock
|
||||
|
||||
- work-command:
|
||||
worktype: local
|
||||
command: ansible-runner
|
||||
params: worker
|
||||
allowruntimeparams: true
|
||||
|
||||
- work-kubernetes:
|
||||
worktype: kubernetes-runtime-auth
|
||||
authmethod: runtime
|
||||
allowruntimeauth: true
|
||||
allowruntimepod: true
|
||||
allowruntimeparams: true
|
||||
|
||||
- work-kubernetes:
|
||||
worktype: kubernetes-incluster-auth
|
||||
authmethod: incluster
|
||||
allowruntimeauth: true
|
||||
allowruntimepod: true
|
||||
allowruntimeparams: true
|
||||
@@ -5,7 +5,7 @@
|
||||
- log-level: info
|
||||
|
||||
- tcp-peer:
|
||||
address: awx_1:4444
|
||||
address: awx_1:2222
|
||||
redial: true
|
||||
|
||||
- tcp-listener:
|
||||
|
||||
Reference in New Issue
Block a user