Skip to content

Commit

Permalink
Enable Horizon Ironic dashboard plugin
Browse files Browse the repository at this point in the history
Enable the Ironic dashboard plugin if ironic is configured.

Implements: blueprint role-ironic
Change-Id: I4da4720ad3deb587a0131930028f4628a22bb72f
  • Loading branch information
neillc authored and Jesse Pretorius (odyssey4me) committed Jul 25, 2016
1 parent 9b4c1cc commit 097c01f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions defaults/main.yml
Expand Up @@ -134,6 +134,9 @@ horizon_default_role_name: _member_
horizon_launch_instance_legacy: False
horizon_launch_instance_ng: True

## Ironic UI Panel
horizon_enable_ironic_ui: False

## Neutron features to enable
horizon_enable_neutron_lbaas: False
horizon_enable_neutron_fwaas: False
Expand Down Expand Up @@ -210,6 +213,7 @@ horizon_pip_packages:
- django-openstack-auth
- greenlet
- horizon
- ironic-ui
- keystonemiddleware
- MySQL-python
- PyMySQL
Expand Down
@@ -0,0 +1,5 @@
---
features:
- The os_horizon role now has support for the horizon ironic-ui dashboard. The
dashboard may be enabled by setting ``horizon_enable_ironic_ui`` to ``True``
in ``/etc/openstack_deploy/user_variables.yml``.
9 changes: 9 additions & 0 deletions tasks/horizon_post_install.yml
Expand Up @@ -32,6 +32,15 @@
dest: "{{ horizon_lib_dir }}/openstack_dashboard/static/dashboard/{{ item.value.dest }}"
with_dict: "{{ horizon_custom_uploads | default({}) }}"

- name: Enable the ironic-ui-dashboard Horizon panel
file:
src: "{{ horizon_lib_dir }}/ironic_ui/enabled/_2200_ironic.py"
path: "{{ horizon_lib_dir }}/openstack_dashboard/local/enabled/_2200_ironic.py"
state: "{{ horizon_enable_ironic_ui | ternary('link', 'absent') }}"
notify: Restart apache2
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"
Expand Down

0 comments on commit 097c01f

Please sign in to comment.