mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
deploy: Add allowed hosts to Ansible variables
Move DB credentials to inventory file
This commit is contained in:
@@ -16,5 +16,3 @@
|
|||||||
|
|
||||||
vars:
|
vars:
|
||||||
ansible_python_interpreter: python2
|
ansible_python_interpreter: python2
|
||||||
db_user: 'breccia'
|
|
||||||
db_pass: 'breccia'
|
|
||||||
|
|||||||
@@ -3,9 +3,14 @@
|
|||||||
|
|
||||||
SECRET_KEY={{ secret_key }}
|
SECRET_KEY={{ secret_key }}
|
||||||
DEBUG={{ "True" if deploy_mode > 1 else "False" }}
|
DEBUG={{ "True" if deploy_mode > 1 else "False" }}
|
||||||
ALLOWED_HOSTS={{ inventory_hostname }},localhost,127.0.0.1
|
|
||||||
DATABASE_URL=mysql://{{ db_user }}:{{ db_pass }}@localhost:3306/{{ db_name }}
|
DATABASE_URL=mysql://{{ db_user }}:{{ db_pass }}@localhost:3306/{{ db_name }}
|
||||||
|
|
||||||
|
{% if allowed_hosts is defined %}
|
||||||
|
ALLOWED_HOSTS={% for h in allowed_hosts %}{{ h }},{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
ALLOWED_HOSTS={{ inventory_hostname }},localhost,127.0.0.1
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
PROJECT_SHORT_NAME={{ display_short_name }}
|
PROJECT_SHORT_NAME={{ display_short_name }}
|
||||||
PROJECT_LONG_NAME={{ display_long_name }}
|
PROJECT_LONG_NAME={{ display_long_name }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user