From 7cd77a7b9220837b44a6e3636acec940e9a55275 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Fri, 15 Mar 2024 18:54:21 +0100 Subject: [PATCH] Add support for deploying Horizon with Skyline We change a default value of `horizon_webroot` to reflect the usecase where both Horizon and Skyline are deployed. When it is the case, horizon webroot URL will be changed to `/horizon`. Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/859446 Change-Id: Ia38311a6fde88292c090cf6289bf5b6c6279c479 --- defaults/main.yml | 4 +++- releasenotes/notes/horizon_webroot-ae22a11343c1fb1e.yaml | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/horizon_webroot-ae22a11343c1fb1e.yaml diff --git a/defaults/main.yml b/defaults/main.yml index 8b80ff28..74837f9f 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -426,7 +426,9 @@ horizon_custom_themes: {} # value is the theme_name from the vars above horizon_default_theme: "default" -horizon_webroot: / +# URI through which Horizon will be available. +# If Skyline is not deployed defaults to `/`, `/horizon` otherwise. +horizon_webroot: "{{ (groups['skyline_all'] | default([])) | ternary('/horizon', '/') }}" horizon_bind_address: "{{ openstack_service_bind_address | default('0.0.0.0') }}" diff --git a/releasenotes/notes/horizon_webroot-ae22a11343c1fb1e.yaml b/releasenotes/notes/horizon_webroot-ae22a11343c1fb1e.yaml new file mode 100644 index 00000000..13a6fc6a --- /dev/null +++ b/releasenotes/notes/horizon_webroot-ae22a11343c1fb1e.yaml @@ -0,0 +1,6 @@ +--- +features: + - | + Horizon is now co-installabe with Skyline dashboard. In case both + Horizon and Skyline are deployed, Horizon will be served by + `/horizon` URI.