replace our rdb tooling w/ the sdb PyPI package

This commit is contained in:
Ryan Petrello
2018-02-26 18:27:35 -05:00
parent c3968ca2b6
commit d743b77353
7 changed files with 15 additions and 254 deletions

View File

@@ -152,3 +152,8 @@ SERVICE_NAME_DICT = {
# Used for sending commands in automatic restart
UWSGI_FIFO_LOCATION = '/awxfifo'
try:
socket.gethostbyname('docker.for.mac.internal')
os.environ['SDB_NOTIFY_HOST'] = 'docker.for.mac.internal'
except Exception:
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]