From e66e614c821a7cc2e6bf0741598e14e0cc306f98 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Mon, 29 Sep 2014 12:38:41 -0500 Subject: [PATCH] change the help URL in Horizon so that it can be overriden --- rpc_deployment/inventory/group_vars/horizon.yml | 4 ++++ .../roles/horizon_common/templates/local_settings.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/rpc_deployment/inventory/group_vars/horizon.yml b/rpc_deployment/inventory/group_vars/horizon.yml index e8c556c081..b0f31955f3 100644 --- a/rpc_deployment/inventory/group_vars/horizon.yml +++ b/rpc_deployment/inventory/group_vars/horizon.yml @@ -41,6 +41,10 @@ system_user: www-data system_group: www-data +## Horizon Help URL Path +horizon_help_url: http://docs.rackspace.com/rpc/api/v9/rpc-faq-v9/content/rpc-common-front.html + + # Installation directories install_lib_dir: /usr/local/lib/python2.7/dist-packages diff --git a/rpc_deployment/roles/horizon_common/templates/local_settings.py b/rpc_deployment/roles/horizon_common/templates/local_settings.py index dc698acabc..b15599006f 100644 --- a/rpc_deployment/roles/horizon_common/templates/local_settings.py +++ b/rpc_deployment/roles/horizon_common/templates/local_settings.py @@ -59,7 +59,7 @@ HORIZON_CONFIG = { 'fade_duration': 1500, 'types': ['alert-success', 'alert-info'] }, - 'help_url': "http://docs.openstack.org", + 'help_url': "{{ horizon_help_url|default('http://docs.openstack.org') }}", 'exceptions': { 'recoverable': exceptions.RECOVERABLE, 'not_found': exceptions.NOT_FOUND,