From 097c01fe723b67e6b8910694d4a34957018d371b Mon Sep 17 00:00:00 2001 From: Neill Cox Date: Wed, 22 Jun 2016 09:26:30 +1000 Subject: [PATCH] Enable Horizon Ironic dashboard plugin Enable the Ironic dashboard plugin if ironic is configured. Implements: blueprint role-ironic Change-Id: I4da4720ad3deb587a0131930028f4628a22bb72f --- defaults/main.yml | 4 ++++ ...orizon-ironic-dashboard-support-3eb5168d71e4dddd.yaml | 5 +++++ tasks/horizon_post_install.yml | 9 +++++++++ 3 files changed, 18 insertions(+) create mode 100644 releasenotes/notes/add-horizon-ironic-dashboard-support-3eb5168d71e4dddd.yaml diff --git a/defaults/main.yml b/defaults/main.yml index b488b4ca..04b30625 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 @@ -210,6 +213,7 @@ horizon_pip_packages: - django-openstack-auth - greenlet - horizon + - ironic-ui - keystonemiddleware - MySQL-python - PyMySQL diff --git a/releasenotes/notes/add-horizon-ironic-dashboard-support-3eb5168d71e4dddd.yaml b/releasenotes/notes/add-horizon-ironic-dashboard-support-3eb5168d71e4dddd.yaml new file mode 100644 index 00000000..1e3d3c35 --- /dev/null +++ b/releasenotes/notes/add-horizon-ironic-dashboard-support-3eb5168d71e4dddd.yaml @@ -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``. diff --git a/tasks/horizon_post_install.yml b/tasks/horizon_post_install.yml index 53b4528c..57e4a296 100644 --- a/tasks/horizon_post_install.yml +++ b/tasks/horizon_post_install.yml @@ -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"