From 73356a634b982dd67b5c58ccf47a4c8f8fd41942 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 29 Sep 2015 17:53:17 +0200 Subject: [PATCH] Use the hostname instead of the IP in the settings --- roles/pdc/templates/settings_local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/pdc/templates/settings_local.py b/roles/pdc/templates/settings_local.py index f05cc7ec3b..6af9c57ae8 100644 --- a/roles/pdc/templates/settings_local.py +++ b/roles/pdc/templates/settings_local.py @@ -84,7 +84,7 @@ REST_API_VERSION = 'v1' BROWSABLE_DOCUMENT_MACROS = { # need to be rewrite with the real host name when deploy. - 'HOST_NAME': 'http://{{ansible_ssh_host}}:80', + 'HOST_NAME': 'http://{{ hostbase }}:80', # make consistent with rest api root. 'API_PATH': '%s%s' % (REST_API_URL, REST_API_VERSION), }