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"