diff --git a/defaults/main.yml b/defaults/main.yml index 73d6e9ca..57de4dca 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/releasenotes/notes/glance_cors_allowed_origin-fe355eb93169cf13.yaml b/releasenotes/notes/glance_cors_allowed_origin-fe355eb93169cf13.yaml new file mode 100644 index 00000000..a15f6044 --- /dev/null +++ b/releasenotes/notes/glance_cors_allowed_origin-fe355eb93169cf13.yaml @@ -0,0 +1,5 @@ +--- +other: + - | + ``external_lb_vip_address`` was added to the default value for + ``glance_cors_allowed_origin`` regardless of other variables.