Verified Commit 1e6458e6 authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/archweb: Check for remote host and apply the local_settings template accordingly

parent 5975631e
......@@ -15,9 +15,12 @@ DATABASES = {
'default': {
'ENGINE' : 'django.db.backends.postgresql_psycopg2',
'PORT' : 5432,
'NAME' : 'archweb',
'USER' : 'archweb',
'PASSWORD': '{{ archweb_db_password }}',
{% if archweb_db_host != 'localhost' %}
'HOST' : '{{ archweb_db_host }}',
{% endif %}
'NAME' : '{{ archweb_db }}',
'USER' : '{{ archweb_db_site_user }}',
'PASSWORD': '{{ archweb_db_site_password }}',
'OPTIONS' : {'autocommit': True, 'application_name': 'archweb'},
},
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment