Enable Sahara panel in Horizon

This change adds an option to deploy the data-processing panel
in Horizon.

Change-Id: I7f88dce5b9d1a82412ddb3ef18f3cc16de2140c3
This commit is contained in:
Flavio Ramalho 2016-08-29 14:53:27 +00:00
parent a55586862e
commit 02b04397b7
3 changed files with 29 additions and 0 deletions

View File

@ -156,6 +156,9 @@ horizon_enable_ironic_ui: False
## Magnum UI Panel ## Magnum UI Panel
horizon_enable_magnum_ui: False horizon_enable_magnum_ui: False
## Sahara UI Panel
horizon_enable_sahara_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
@ -243,6 +246,7 @@ horizon_pip_packages:
- pycrypto - pycrypto
- python-memcached - python-memcached
- python-keystoneclient - python-keystoneclient
- sahara_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 Sahara dashboard is available in Horizon. Deployers can enable
the panel by setting the following Ansible variable:
.. code-block:: yaml
horizon_enable_sahara_ui: True

View File

@ -57,6 +57,22 @@
tags: tags:
- horizon-configs - horizon-configs
- name: Enable the sahara-dashboard Horizon panel
file:
src: "{{ item.src }}"
path: "{{ item.path }}"
state: "{{ horizon_enable_sahara_ui | ternary('link', 'absent') }}"
notify: Restart apache2
with_items:
- src: "{{ horizon_lib_dir }}/sahara_dashboard/enabled/_1810_data_processing_panel_group.py"
path: "{{ horizon_lib_dir }}/openstack_dashboard/enabled/_1810_data_processing_panel_group.py"
- src: "{{ horizon_lib_dir }}/sahara_dashboard/enabled/_1820_data_processing_clusters_panel.py"
path: "{{ horizon_lib_dir }}/openstack_dashboard/enabled/_1820_data_processing_clusters_panel.py"
- src: "{{ horizon_lib_dir }}/sahara_dashboard/enabled/_1840_data_processing_jobs_panel.py"
path: "{{ horizon_lib_dir }}/openstack_dashboard/enabled/_1840_data_processing_jobs_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"