Rename container hostname from awx_1 to awx-1

* Django and other webservers that care about proper hostnames don't
  like underscores in them.
This commit is contained in:
Chris Meyers
2024-04-02 16:37:54 -04:00
committed by Chris Meyers
parent c061f59f1c
commit ae1235b223
5 changed files with 23 additions and 12 deletions

View File

@@ -49,14 +49,14 @@ awx-manage register_queue --queuename=default --instance_percent=100
if [[ -n "$RUN_MIGRATIONS" ]]; then
for (( i=1; i<$CONTROL_PLANE_NODE_COUNT; i++ )); do
for (( j=i + 1; j<=$CONTROL_PLANE_NODE_COUNT; j++ )); do
awx-manage register_peers "awx_$i" --peers "awx_$j"
awx-manage register_peers "awx-$i" --peers "awx-$j"
done
done
if [[ $EXECUTION_NODE_COUNT > 0 ]]; then
awx-manage provision_instance --hostname="receptor-hop" --node_type="hop"
awx-manage add_receptor_address --instance="receptor-hop" --address="receptor-hop" --port=5555 --canonical
awx-manage register_peers "receptor-hop" --peers "awx_1"
awx-manage register_peers "receptor-hop" --peers "awx-1"
for (( e=1; e<=$EXECUTION_NODE_COUNT; e++ )); do
awx-manage provision_instance --hostname="receptor-$e" --node_type="execution"
awx-manage register_peers "receptor-$e" --peers "receptor-hop"