Adding Designate UI to horizon role.

Change-Id: I754c07c2b963b5a4f105ba2144a44f7caaa5f155
This commit is contained in:
Donovan Francesco (drifterza) 2016-11-10 09:00:34 +02:00
parent 6e23b3b2f0
commit 262140d646
3 changed files with 32 additions and 0 deletions

View File

@ -32,10 +32,15 @@ horizon_git_install_branch: master
magnum_dashboard_git_repo: https://git.openstack.org/openstack/magnum-ui
magnum_dashboard_git_install_branch: master
## The git source/branch for the Designate UI plugin
designate_dashboard_git_repo: https://git.openstack.org/openstack/designate-dashboard
designate_dashboard_git_install_branch: master
## The packages to build from source (used in developer mode)
horizon_developer_constraints:
- "git+{{ horizon_git_repo }}@{{ horizon_git_install_branch }}#egg=horizon"
- "git+{{ magnum_dashboard_git_repo }}@{{ magnum_dashboard_git_install_branch }}#egg=magnum-ui"
- "git+{{ designate_dashboard_git_repo }}@{{ designate_dashboard_git_install_branch }}#egg=designatedashboard"
# Name of the virtual env to deploy into
horizon_venv_tag: untagged
@ -166,6 +171,9 @@ horizon_enable_sahara_ui: False
## Trove UI Panel
horizon_enable_trove_ui: False
## Designate UI Panel
horizon_enable_designate_ui: False
## Neutron features to enable
horizon_enable_neutron_lbaas: False
horizon_enable_neutron_fwaas: False
@ -255,6 +263,7 @@ horizon_pip_packages:
- python-keystoneclient
- sahara_dashboard
- trove_dashboard
- designatedashboard
# This variable is used to install additional pip packages
# that could be needed for additional dashboards

View File

@ -0,0 +1,5 @@
---
features:
- The os_horizon role now has support for the horizon designate-ui dashboard. The
dashboard may be enabled by setting ``horizon_enable_designate_ui`` to ``True``
in ``/etc/openstack_deploy/user_variables.yml``.

View File

@ -32,6 +32,24 @@
dest: "{{ horizon_lib_dir }}/openstack_dashboard/static/dashboard/{{ item.value.dest }}"
with_dict: "{{ horizon_custom_uploads | default({}) }}"
- name: Enable the designate-ui-dashboard Horizon panel
file:
src: "{{ item.src }}"
path: "{{ item.path }}"
state: "{{ horizon_enable_designate_ui | ternary('link', 'absent') }}"
with_items:
- src: "{{ horizon_lib_dir }}/designatedashboard/enabled/_1710_project_dns_panel_group.py"
path: "{{ horizon_lib_dir }}/openstack_dashboard/local/enabled/_1710_project_dns_panel_group.py"
- src: "{{ horizon_lib_dir }}/designatedashboard/enabled/_1720_project_dns_panel.py"
path: "{{ horizon_lib_dir }}/openstack_dashboard/local/enabled/_1720_project_dns_panel.py"
- src: "{{ horizon_lib_dir }}/designatedashboard/enabled/_1721_dns_zones_panel.py"
path: "{{ horizon_lib_dir }}/openstack_dashboard/local/enabled/_1721_dns_zones_panel.py"
- src: "{{ horizon_lib_dir }}/designatedashboard/enabled/_1722_dns_reversedns_panel.py"
path: "{{ horizon_lib_dir }}/openstack_dashboard/local/enabled/_1722_dns_reversedns_panel.py"
notify: Restart apache2
tags:
- horizon-configs
- name: Enable the ironic-ui-dashboard Horizon panel
file:
src: "{{ horizon_lib_dir }}/ironic_ui/enabled/_2200_ironic.py"