Skip to content

Commit

Permalink
Adding Designate UI to horizon role.
Browse files Browse the repository at this point in the history
Change-Id: I754c07c2b963b5a4f105ba2144a44f7caaa5f155
  • Loading branch information
drifterza committed Nov 14, 2016
1 parent 6e23b3b commit 262140d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
9 changes: 9 additions & 0 deletions defaults/main.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
@@ -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``.
18 changes: 18 additions & 0 deletions tasks/horizon_post_install.yml
Expand Up @@ -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"
Expand Down

0 comments on commit 262140d

Please sign in to comment.