Add template option for the default horizon panel

The change adds the option to set the default panel within horizon.
this change is useful when a tenant has many hundreds of vms and
running into horizon login slowness due to poorly crafted api
calls and sql statements.

Change-Id: If3da12a466d4953a176ec8e45499bf1cd9452ae5
Closes-Bug: #1533830
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2016-01-13 14:41:49 -06:00
parent af55df0f1e
commit 55f30c4c68
4 changed files with 9 additions and 0 deletions

View File

@ -128,6 +128,9 @@ horizon_enable_neutron_lbaas: False
## Swift
horizon_swift_file_transfer_chunk_size: 524288
## Panel
horizon_default_panel: overview
horizon_webroot: /
horizon_listen_ports:

View File

@ -42,6 +42,7 @@
with_items:
- { src: "horizon_local_settings.py.j2", dest: "/etc/horizon/local_settings.py", mode: "0644" }
- { src: "horizon-manage.py.j2", dest: "{{ horizon_bin }}/horizon-manage.py", mode: "0755" }
- { src: "80_admin_default_panel.py.j2", dest: "{{ horizon_lib_dir }}/openstack_dashboard/local/enabled/_80_admin_default_panel.py", mode: "0755" }
notify: Restart apache2
tags:
- horizon-configs

View File

@ -164,6 +164,7 @@
- { path: "{{ horizon_lib_dir }}/static", mode: "2755" }
- { path: "{{ horizon_lib_dir }}/openstack_dashboard", mode: "2755" }
- { path: "{{ horizon_lib_dir }}/openstack_dashboard/local", mode: "2755" }
- { path: "{{ horizon_lib_dir }}/openstack_dashboard/local/enabled", mode: "2755" }
tags:
- horizon-dirs

View File

@ -0,0 +1,4 @@
PANEL = '{{ horizon_default_panel }}'
PANEL_DASHBOARD = 'admin'
PANEL_GROUP = 'admin'
DEFAULT_PANEL = '{{ horizon_default_panel }}'