Add external_lb_vip_address to glance_cors_allowed_origin by default

Since ``horizon_images_upload_mode`` is enabled by default and
``glance_show_multiple_locations`` is disabled by default(turns out
it's not really required), we should add ``external_lb_vip_address`` to
``glance_cors_allowed_origin`` as default.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/862167
Change-Id: I6d13e1e985f8e3bbb97b0af7063b469cb4b2dbca
This commit is contained in:
Damian Dabrowski 2022-10-20 19:05:49 +02:00
parent 504e641ed4
commit 5bc252de44
2 changed files with 6 additions and 1 deletions

View File

@ -195,7 +195,7 @@ glance_image_cache_max_size: 10737418240
glance_image_cache_stall_time: 86400
# CORS options
glance_cors_allowed_origin: "{{ (glance_show_multiple_locations | bool) | ternary(openstack_service_publicuri_proto | default('http') + '://' + external_lb_vip_address, None) }}"
glance_cors_allowed_origin: "{{ openstack_service_publicuri_proto | default('http') + '://' + external_lb_vip_address }}"
# If ``glance_api_workers`` is unset the system will use half the number of available VCPUS to
# compute the number of api workers to use.
# glance_api_workers: 16

View File

@ -0,0 +1,5 @@
---
other:
- |
``external_lb_vip_address`` was added to the default value for
``glance_cors_allowed_origin`` regardless of other variables.