diff --git a/defaults/main.yml b/defaults/main.yml index d1b59af3..b708a5bd 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/releasenotes/notes/add-horizon-designate-dashboard-support-44392c49b0e1a307.yaml b/releasenotes/notes/add-horizon-designate-dashboard-support-44392c49b0e1a307.yaml new file mode 100644 index 00000000..8110170b --- /dev/null +++ b/releasenotes/notes/add-horizon-designate-dashboard-support-44392c49b0e1a307.yaml @@ -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``. diff --git a/tasks/horizon_post_install.yml b/tasks/horizon_post_install.yml index a89e6358..aef5f6df 100644 --- a/tasks/horizon_post_install.yml +++ b/tasks/horizon_post_install.yml @@ -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"