From 02b04397b7c3333a210019cd1d7cad3faa8b13ad Mon Sep 17 00:00:00 2001 From: Flavio Ramalho Date: Mon, 29 Aug 2016 14:53:27 +0000 Subject: [PATCH] Enable Sahara panel in Horizon This change adds an option to deploy the data-processing panel in Horizon. Change-Id: I7f88dce5b9d1a82412ddb3ef18f3cc16de2140c3 --- defaults/main.yml | 4 ++++ .../sahara-horizon-panel-d80d17da528b4c07.yaml | 9 +++++++++ tasks/horizon_post_install.yml | 16 ++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 releasenotes/notes/sahara-horizon-panel-d80d17da528b4c07.yaml diff --git a/defaults/main.yml b/defaults/main.yml index 071dbcec..d770fe18 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -156,6 +156,9 @@ horizon_enable_ironic_ui: False ## Magnum UI Panel horizon_enable_magnum_ui: False +## Sahara UI Panel +horizon_enable_sahara_ui: False + ## Neutron features to enable horizon_enable_neutron_lbaas: False horizon_enable_neutron_fwaas: False @@ -243,6 +246,7 @@ horizon_pip_packages: - pycrypto - python-memcached - python-keystoneclient + - sahara_dashboard # This variable is used by the repo_build process to determine # which host group to check for members of before building the diff --git a/releasenotes/notes/sahara-horizon-panel-d80d17da528b4c07.yaml b/releasenotes/notes/sahara-horizon-panel-d80d17da528b4c07.yaml new file mode 100644 index 00000000..aca7e2db --- /dev/null +++ b/releasenotes/notes/sahara-horizon-panel-d80d17da528b4c07.yaml @@ -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 diff --git a/tasks/horizon_post_install.yml b/tasks/horizon_post_install.yml index 4027ce9d..84cd1998 100644 --- a/tasks/horizon_post_install.yml +++ b/tasks/horizon_post_install.yml @@ -57,6 +57,22 @@ tags: - 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 file: src: "{{ horizon_lib_dir }}/neutron_lbaas_dashboard/enabled/_1481_project_ng_loadbalancersv2_panel.py"