diff options
author | Radomir Dopieralski <openstack@sheep.art.pl> | 2014-04-04 13:07:11 +0200 |
---|---|---|
committer | Radomir Dopieralski <openstack@sheep.art.pl> | 2014-04-04 15:35:52 +0200 |
commit | d4a00c748273eb1df9fe657f85a379e42d0446de (patch) | |
tree | 758a53a4e2e4dd7a25b8c2843a3f84a93bf617ab | |
parent | a8d1dde57fd8735588e35398d1c991aebafaba7c (diff) | |
download | tuskar-ui-d4a00c748273eb1df9fe657f85a379e42d0446de.tar.gz |
Disable other dashboards
Added documentation on how to disable the other dashboards.
Change-Id: Ie9e5853fdfdc14cdc3da260e2ae1ba57c20eb998
Closes-bug: #1302006
-rw-r--r-- | _10_admin.py.example | 2 | ||||
-rw-r--r-- | _20_project.py.example | 2 | ||||
-rw-r--r-- | _50_tuskar.py.example | 1 | ||||
-rw-r--r-- | docs/install.rst | 6 | ||||
-rw-r--r-- | local_settings.py.example | 19 |
5 files changed, 30 insertions, 0 deletions
diff --git a/_10_admin.py.example b/_10_admin.py.example new file mode 100644 index 00000000..868d719d --- /dev/null +++ b/_10_admin.py.example @@ -0,0 +1,2 @@ +DASHBOARD = 'admin' +DISABLED = True diff --git a/_20_project.py.example b/_20_project.py.example new file mode 100644 index 00000000..b9006946 --- /dev/null +++ b/_20_project.py.example @@ -0,0 +1,2 @@ +DASHBOARD = 'project' +DISABLED = True diff --git a/_50_tuskar.py.example b/_50_tuskar.py.example index a56b2e65..7da29698 100644 --- a/_50_tuskar.py.example +++ b/_50_tuskar.py.example @@ -9,3 +9,4 @@ ADD_EXCEPTIONS = { 'not_found': exceptions.NOT_FOUND, 'unauthorized': exceptions.UNAUTHORIZED, } +DEFAULT = True diff --git a/docs/install.rst b/docs/install.rst index 47d46ffb..c126add5 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -102,6 +102,12 @@ And enable it in Horizon:: cp ../tuskar-ui/_50_tuskar.py.example openstack_dashboard/local/enabled/_50_tuskar.py +Then disable the other dashboards:: + + cp ../tuskar-ui/_10_admin.py.example openstack_dashboard/local/enabled/_10_admin.py + cp ../tuskar-ui/_20_project.py.example openstack_dashboard/local/enabled/_20_project.py + + Starting the app ---------------- diff --git a/local_settings.py.example b/local_settings.py.example index f0758252..013480e1 100644 --- a/local_settings.py.example +++ b/local_settings.py.example @@ -47,6 +47,23 @@ TEMPLATE_DEBUG = DEBUG # valid options would be "AUTO", "VNC" or "SPICE" # CONSOLE_TYPE = "AUTO" +# Default OpenStack Dashboard configuration. +HORIZON_CONFIG = { + 'dashboards': ('project', 'admin', 'settings',), + 'default_dashboard': 'project', + 'user_home': 'openstack_dashboard.views.get_user_home', + 'ajax_queue_limit': 10, + 'auto_fade_alerts': { + 'delay': 3000, + 'fade_duration': 1500, + 'types': ['alert-success', 'alert-info'] + }, + 'help_url': "http://docs.openstack.org", + 'exceptions': {'recoverable': exceptions.RECOVERABLE, + 'not_found': exceptions.NOT_FOUND, + 'unauthorized': exceptions.UNAUTHORIZED}, +} + # Specify a regular expression to validate user passwords. # HORIZON_CONFIG["password_validator"] = { # "regex": '.*', @@ -348,6 +365,8 @@ SECURITY_GROUP_RULES = { TUSKAR_ENDPOINT_URL = "http://127.0.0.1:8585" +HORIZON_CONFIG['user_home'] = '' + OVERCLOUD_CREDS = { 'user': 'admin', 'password': 'password', |