mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
generate control node receptor.conf
when a new remote execution/hop node is added regenerate the receptor.conf for all control node to peer out to the new remote execution node Signed-off-by: Hao Liu <haoli@redhat.com> Co-Authored-By: Seth Foster <fosterseth@users.noreply.github.com> Co-Authored-By: Shane McDonald <me@shanemcd.com>
This commit is contained in:
committed by
Jeff Bradberry
parent
4bf9925cf7
commit
9b034ad574
@@ -109,6 +109,20 @@
|
||||
mode: '0600'
|
||||
with_sequence: start=1 end={{ control_plane_node_count }}
|
||||
|
||||
- name: Create Receptor Config Lock File
|
||||
file:
|
||||
path: "{{ sources_dest }}/receptor/receptor-awx-{{ item }}.conf.lock"
|
||||
state: touch
|
||||
mode: '0600'
|
||||
with_sequence: start=1 end={{ control_plane_node_count }}
|
||||
|
||||
- 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"
|
||||
|
||||
@@ -42,6 +42,7 @@ services:
|
||||
- "../../docker-compose/_sources/local_settings.py:/etc/tower/conf.d/local_settings.py"
|
||||
- "../../docker-compose/_sources/SECRET_KEY:/etc/tower/SECRET_KEY"
|
||||
- "../../docker-compose/_sources/receptor/receptor-awx-{{ loop.index }}.conf:/etc/receptor/receptor.conf"
|
||||
- "../../docker-compose/_sources/receptor/receptor-awx-{{ loop.index }}.conf.lock:/etc/receptor/receptor.conf.lock"
|
||||
- "../../docker-compose/_sources/receptor/work_public_key.pem:/etc/receptor/work_public_key.pem"
|
||||
- "../../docker-compose/_sources/receptor/work_private_key.pem:/etc/receptor/work_private_key.pem"
|
||||
# - "../../docker-compose/_sources/certs:/etc/receptor/certs" # TODO: optionally generate certs
|
||||
|
||||
Reference in New Issue
Block a user