diff --git a/defaults/main.yml b/defaults/main.yml index b402148b..632dd07c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -193,7 +193,7 @@ glance_keystone_auth_plugin: password glance_image_cache_max_size: 10737418240 # CORS options -glance_cors_allowed_origin: "{{ (glance_show_multiple_locations | bool) | ternary(external_lb_vip_address, None) }}" +glance_cors_allowed_origin: "{{ (glance_show_multiple_locations | bool) | ternary(openstack_service_publicuri_proto | default('http') + '://' + external_lb_vip_address, None) }}" # 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