1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 22:21:13 +03:00

set $HOME via an API call so AWX_TASK_ENV isn't marked as readonly

see: https://github.com/ansible/awx/issues/1315
This commit is contained in:
Ryan Petrello 2018-02-26 16:35:36 -05:00
parent 9493b72f29
commit 7741de5153
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777
4 changed files with 1 additions and 4 deletions

View File

@ -18,6 +18,7 @@ else
echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'root@localhost', 'password')" | awx-manage shell
awx-manage create_preload_data
fi
echo 'from django.conf import settings; x = settings.AWX_TASK_ENV; x["HOME"] = "/var/lib/awx"; settings.AWX_TASK_ENV = x' | awx-manage shell
awx-manage provision_instance --hostname=$(hostname)
awx-manage register_queue --queuename=tower --instance_percent=100
supervisord -c /supervisor_task.conf

View File

@ -23,8 +23,6 @@ ALLOWED_HOSTS = ['*']
INTERNAL_API_URL = 'http://awxweb:8052'
AWX_TASK_ENV['HOME'] = '/var/lib/awx'
# Container environments don't like chroots
AWX_PROOT_ENABLED = False

View File

@ -30,7 +30,6 @@ data:
SECRET_KEY = file('/etc/tower/SECRET_KEY', 'rb').read().strip()
ALLOWED_HOSTS = ['*']
INTERNAL_API_URL = 'http://127.0.0.1:8052'
AWX_TASK_ENV['HOME'] = '/var/lib/awx'
SERVER_EMAIL = 'root@localhost'
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
EMAIL_SUBJECT_PREFIX = '[AWX] '

View File

@ -31,7 +31,6 @@ data:
SECRET_KEY = file('/etc/tower/SECRET_KEY', 'rb').read().strip()
ALLOWED_HOSTS = ['*']
INTERNAL_API_URL = 'http://127.0.0.1:8052'
AWX_TASK_ENV['HOME'] = '/var/lib/awx'
SERVER_EMAIL = 'root@localhost'
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
EMAIL_SUBJECT_PREFIX = '[AWX] '