diff options
| author | Ralph Bean <rbean@redhat.com> | 2016-01-25 16:47:43 +0000 |
|---|---|---|
| committer | Ralph Bean <rbean@redhat.com> | 2016-01-25 16:47:43 +0000 |
| commit | 156662e5e2c608ff62e14d5a24bbe3fe74e280bd (patch) | |
| tree | 4b0b6e11bfc8369e6b9b46d7ef99754b5211aa0f /roles/pdc/frontend/templates/settings_local.py | |
| parent | ec3fef5508be6b07fd376577efaa300fa3ed6a16 (diff) | |
| download | ansible-156662e5e2c608ff62e14d5a24bbe3fe74e280bd.tar.gz ansible-156662e5e2c608ff62e14d5a24bbe3fe74e280bd.tar.xz ansible-156662e5e2c608ff62e14d5a24bbe3fe74e280bd.zip | |
pdc, conditional server name for prod and stg.
Diffstat (limited to 'roles/pdc/frontend/templates/settings_local.py')
| -rw-r--r-- | roles/pdc/frontend/templates/settings_local.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/pdc/frontend/templates/settings_local.py b/roles/pdc/frontend/templates/settings_local.py index 71422fe22..2d021a520 100644 --- a/roles/pdc/frontend/templates/settings_local.py +++ b/roles/pdc/frontend/templates/settings_local.py @@ -67,6 +67,11 @@ DEBUG = False # NOTE: this is needed when DEGUB is False. # https://docs.djangoproject.com/en/1.8/ref/settings/#allowed-hosts ALLOWED_HOSTS = [ + {% if env == 'staging' %} + 'pdc.stg.fedoraproject.org', + {% else %} + 'pdc.fedoraproject.org', + {% endif %} '{{ inventory_hostname }}', '{{ inventory_hostname_short }}', 'localhost', |
