From 174c69d0afc63e4b4178cf5cf8f7b7aea87c78e2 Mon Sep 17 00:00:00 2001 From: "Donovan Francesco (drifterza)" Date: Fri, 23 Sep 2016 07:18:15 +0200 Subject: [PATCH] Add Trove Dashboard to Horizon Change-Id: Ia0c32e9bc86a28471a9909e2ee43a2c36e26973b --- defaults/main.yml | 4 ++++ .../trove-horizon-panel-c3b616273b21d7db.yaml | 9 ++++++++ tasks/horizon_post_install.yml | 22 +++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 releasenotes/notes/trove-horizon-panel-c3b616273b21d7db.yaml diff --git a/defaults/main.yml b/defaults/main.yml index d770fe18..e447e693 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -159,6 +159,9 @@ horizon_enable_magnum_ui: False ## Sahara UI Panel horizon_enable_sahara_ui: False +## Trove UI Panel +horizon_enable_trove_ui: False + ## Neutron features to enable horizon_enable_neutron_lbaas: False horizon_enable_neutron_fwaas: False @@ -247,6 +250,7 @@ horizon_pip_packages: - python-memcached - python-keystoneclient - sahara_dashboard + - trove_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/trove-horizon-panel-c3b616273b21d7db.yaml b/releasenotes/notes/trove-horizon-panel-c3b616273b21d7db.yaml new file mode 100644 index 00000000..0d051744 --- /dev/null +++ b/releasenotes/notes/trove-horizon-panel-c3b616273b21d7db.yaml @@ -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 diff --git a/tasks/horizon_post_install.yml b/tasks/horizon_post_install.yml index 84cd1998..c2a8c0e9 100644 --- a/tasks/horizon_post_install.yml +++ b/tasks/horizon_post_install.yml @@ -73,6 +73,28 @@ tags: - 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 file: src: "{{ horizon_lib_dir }}/neutron_lbaas_dashboard/enabled/_1481_project_ng_loadbalancersv2_panel.py"