Add Trove Dashboard to Horizon

Change-Id: Ia0c32e9bc86a28471a9909e2ee43a2c36e26973b
This commit is contained in:
Donovan Francesco (drifterza) 2016-09-23 07:18:15 +02:00
parent 1f682b09ef
commit 174c69d0af
3 changed files with 35 additions and 0 deletions

View File

@ -159,6 +159,9 @@ horizon_enable_magnum_ui: False
## Sahara UI Panel ## Sahara UI Panel
horizon_enable_sahara_ui: False horizon_enable_sahara_ui: False
## Trove UI Panel
horizon_enable_trove_ui: False
## Neutron features to enable ## Neutron features to enable
horizon_enable_neutron_lbaas: False horizon_enable_neutron_lbaas: False
horizon_enable_neutron_fwaas: False horizon_enable_neutron_fwaas: False
@ -247,6 +250,7 @@ horizon_pip_packages:
- python-memcached - python-memcached
- python-keystoneclient - python-keystoneclient
- sahara_dashboard - sahara_dashboard
- trove_dashboard
# This variable is used by the repo_build process to determine # This variable is used by the repo_build process to determine
# which host group to check for members of before building the # which host group to check for members of before building the

View File

@ -0,0 +1,9 @@
---
features:
- |
The Trove dashboard is available in Horizon. Deployers can enable
the panel by setting the following Ansible variable:
.. code-block:: yaml
horizon_enable_trove_ui: True

View File

@ -73,6 +73,28 @@
tags: tags:
- horizon-configs - horizon-configs
- name: Enable the trove-dashboard Horizon panel
file:
src: "{{ item.src }}"
path: "{{ item.path }}"
state: "{{ horizon_enable_trove_ui | ternary('link', 'absent') }}"
notify: Restart apache2
with_items:
- src: "{{ horizon_lib_dir }}/trove_dashboard/enabled/_1710_database_panel_group.py"
path: "{{ horizon_lib_dir }}/openstack_dashboard/enabled/_1710_database_panel_group.py"
- src: "{{ horizon_lib_dir }}/trove_dashboard/enabled/_1720_project_databases_panel.py"
path: "{{ horizon_lib_dir }}/openstack_dashboard/enabled/_1720_project_databases_panel.py"
- src: "{{ horizon_lib_dir }}/trove_dashboard/enabled/_1730_project_database_backups_panel.py"
path: "{{ horizon_lib_dir }}/openstack_dashboard/enabled/_1730_project_database_backups_panel.py"
- src: "{{ horizon_lib_dir }}/trove_dashboard/enabled/_1731_project_database_backups_panel.py"
path: "{{ horizon_lib_dir }}/openstack_dashboard/enabled/_1731_project_database_backups_panel.py"
- src: "{{ horizon_lib_dir }}/trove_dashboard/enabled/_1740_project_database_clusters_panel.py"
path: "{{ horizon_lib_dir }}/openstack_dashboard/enabled/_1740_project_database_clusters_panel.py"
- src: "{{ horizon_lib_dir }}/trove_dashboard/enabled/_1760_project_database_configurations_panel.py"
path: "{{ horizon_lib_dir }}/openstack_dashboard/enabled/_1760_project_database_configurations_panel.py"
tags:
- horizon-configs
- name: Enable the neutron-lbaas-dashboard Horizon panel - name: Enable the neutron-lbaas-dashboard Horizon panel
file: file:
src: "{{ horizon_lib_dir }}/neutron_lbaas_dashboard/enabled/_1481_project_ng_loadbalancersv2_panel.py" src: "{{ horizon_lib_dir }}/neutron_lbaas_dashboard/enabled/_1481_project_ng_loadbalancersv2_panel.py"