mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 03:17:39 -02:30
Merge pull request #197 from ansible/fix_secret_key
Fix an issue where we ignored the secret key during install
This commit is contained in:
@@ -6,7 +6,7 @@ import os
|
|||||||
def get_secret():
|
def get_secret():
|
||||||
if os.path.exists("/etc/tower/SECRET_KEY"):
|
if os.path.exists("/etc/tower/SECRET_KEY"):
|
||||||
return file('/etc/tower/SECRET_KEY', 'rb').read().strip()
|
return file('/etc/tower/SECRET_KEY', 'rb').read().strip()
|
||||||
return os.getenv("SECRET_KEY", "privateawx"),
|
return os.getenv("SECRET_KEY", "privateawx")
|
||||||
|
|
||||||
|
|
||||||
ADMINS = ()
|
ADMINS = ()
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ RUN yum -y install epel-release && \
|
|||||||
|
|
||||||
RUN mkdir -p /var/log/tower
|
RUN mkdir -p /var/log/tower
|
||||||
RUN mkdir -p /etc/tower
|
RUN mkdir -p /etc/tower
|
||||||
RUN echo "awxsecret" > /etc/tower/SECRET_KEY
|
|
||||||
COPY {{ awx_sdist_file }} /tmp/{{ awx_sdist_file }}
|
COPY {{ awx_sdist_file }} /tmp/{{ awx_sdist_file }}
|
||||||
RUN OFFICIAL=yes pip install /tmp/{{ awx_sdist_file }}
|
RUN OFFICIAL=yes pip install /tmp/{{ awx_sdist_file }}
|
||||||
|
|
||||||
|
|||||||
@@ -44,8 +44,10 @@ pg_password=awxpass
|
|||||||
pg_database=awx
|
pg_database=awx
|
||||||
pg_port=5432
|
pg_port=5432
|
||||||
|
|
||||||
# AWX Tunables
|
# AWX Secret key
|
||||||
awx_secret_key=aabbcc
|
# It's *very* important that this stay the same between upgrades or you will use the ability to decrypt
|
||||||
|
# your credentials
|
||||||
|
awx_secret_key=awxsecret
|
||||||
|
|
||||||
# Proxy
|
# Proxy
|
||||||
#http_proxy=http://proxy:3128
|
#http_proxy=http://proxy:3128
|
||||||
|
|||||||
@@ -212,3 +212,4 @@
|
|||||||
RABBITMQ_VHOST: "awx"
|
RABBITMQ_VHOST: "awx"
|
||||||
MEMCACHED_HOST: "memcached"
|
MEMCACHED_HOST: "memcached"
|
||||||
MEMCACHED_PORT: "11211"
|
MEMCACHED_PORT: "11211"
|
||||||
|
SECRET_KEY: "{{ awx_secret_key }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user