mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03:30
Set SDB_NOTIFY_HOST for all processes
This commit is contained in:
committed by
Shane McDonald
parent
f1df4c54f8
commit
81f6d36a3a
@@ -177,15 +177,6 @@ CELERYBEAT_SCHEDULE.update({ # noqa
|
|||||||
|
|
||||||
CLUSTER_HOST_ID = socket.gethostname()
|
CLUSTER_HOST_ID = socket.gethostname()
|
||||||
|
|
||||||
|
|
||||||
if 'Docker Desktop' in os.getenv('OS', ''):
|
|
||||||
os.environ['SDB_NOTIFY_HOST'] = 'docker.for.mac.host.internal'
|
|
||||||
else:
|
|
||||||
try:
|
|
||||||
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]
|
|
||||||
except Exception:
|
|
||||||
pass
|
|
||||||
|
|
||||||
AWX_CALLBACK_PROFILE = True
|
AWX_CALLBACK_PROFILE = True
|
||||||
|
|
||||||
if 'sqlite3' not in DATABASES['default']['ENGINE']: # noqa
|
if 'sqlite3' not in DATABASES['default']['ENGINE']: # noqa
|
||||||
|
|||||||
@@ -21,4 +21,10 @@ fi
|
|||||||
# writing out the sub*id files above
|
# writing out the sub*id files above
|
||||||
podman system migrate
|
podman system migrate
|
||||||
|
|
||||||
|
if [[ "$OS" == *"Docker Desktop"* ]]; then
|
||||||
|
export SDB_NOTIFY_HOST='docker.for.mac.host.internal'
|
||||||
|
else
|
||||||
|
export SDB_NOTIFY_HOST=$(ip route | head -n1 | awk '{print $3}')
|
||||||
|
fi
|
||||||
|
|
||||||
exec $@
|
exec $@
|
||||||
|
|||||||
Reference in New Issue
Block a user