)]}'
{"defaults/main.yml":[{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"fff62bdcb7ba03c01cd6545440ed6016af581a80","unresolved":false,"context_lines":[{"line_number":173,"context_line":"glance_image_cache_max_size: 10737418240"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"# CORS options"},{"line_number":176,"context_line":"# glance_cors_allowed_origin:"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"# If ``glance_api_workers`` is unset the system will use half the number of available VCPUS to"},{"line_number":179,"context_line":"# compute the number of api workers to use."}],"source_content_type":"text/x-yaml","patch_set":1,"id":"5f7c97a3_3df19797","line":176,"updated":"2018-06-29 17:05:23.000000000","message":"Following on with other comment.. trying to think about how group_vars can optionally set this in the glance.conf.. maybe you should uncomment this and default like:\nglance_cors_allowed_origin: none\n\nThen you can pass in either _a value_ or none from group_vars to enable/disable it.\n\nTHis is assuming we want to try to keep the behavior we have below with:\n\nglance_glance_api_conf_overrides: \"{{ (glance_show_multiple_locations | bool) | ternary(_cors_overrides, {}) }}\"","commit_id":"05d8887f91ad28f859949dc4e63772fd10b86791"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"32794ef1393cf0f5c4fc2eb2a36b4e2a3d03d560","unresolved":false,"context_lines":[{"line_number":173,"context_line":"glance_image_cache_max_size: 10737418240"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"# CORS options"},{"line_number":176,"context_line":"# glance_cors_allowed_origin:"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"# If ``glance_api_workers`` is unset the system will use half the number of available VCPUS to"},{"line_number":179,"context_line":"# compute the number of api workers to use."}],"source_content_type":"text/x-yaml","patch_set":1,"id":"5f7c97a3_73c3738b","line":176,"range":{"start_line":176,"start_character":0,"end_line":176,"end_character":29},"updated":"2018-07-04 12:25:40.000000000","message":"How about this, as it stands this will not require a group var entry I don\u0027t think:\n\n glance_cors_allowed_origin: \"{{ (glance_show_multiple_locations | bool) | ternary(external_lb_vip_address, None) }}\"\n\nAlso, provide a comment with an example of how to configure it as an override so that it\u0027s more obvious how that\u0027s done.","commit_id":"05d8887f91ad28f859949dc4e63772fd10b86791"}],"releasenotes/notes/add-cors-config-6326223fe7fa7423.yaml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"32794ef1393cf0f5c4fc2eb2a36b4e2a3d03d560","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - It is not possible to configure Glance to allow cross origin requests by"},{"line_number":4,"context_line":"    using the `glance_cors_allowed_origin` variable."}],"source_content_type":"text/x-yaml","patch_set":1,"id":"5f7c97a3_33441b48","line":3,"range":{"start_line":3,"start_character":10,"end_line":3,"end_character":13},"updated":"2018-07-04 12:25:40.000000000","message":"not?","commit_id":"05d8887f91ad28f859949dc4e63772fd10b86791"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"32794ef1393cf0f5c4fc2eb2a36b4e2a3d03d560","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - It is not possible to configure Glance to allow cross origin requests by"},{"line_number":4,"context_line":"    using the `glance_cors_allowed_origin` variable."}],"source_content_type":"text/x-yaml","patch_set":1,"id":"5f7c97a3_1379df91","line":4,"range":{"start_line":4,"start_character":14,"end_line":4,"end_character":42},"updated":"2018-07-04 12:25:40.000000000","message":"should be ``glance_cors_allowed_origin``\n\nAlso, I\u0027d suggest adding an example of how it is used - given that it appears you want the value to be an IP address or CIDR or something?","commit_id":"05d8887f91ad28f859949dc4e63772fd10b86791"}],"templates/glance-api.conf.j2":[{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"fff62bdcb7ba03c01cd6545440ed6016af581a80","unresolved":false,"context_lines":[{"line_number":119,"context_line":"enable_proxy_headers_parsing \u003d True"},{"line_number":120,"context_line":"{% endif %}"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"{% if glance_cors_allowed_origin is defined %}"},{"line_number":123,"context_line":"[cors]"},{"line_number":124,"context_line":"allow_headers \u003d origin,content-md5,x-image-meta-checksum,x-storage-token,accept-encoding,x-auth-token,x-identity-status,x-roles,x-service-catalog,x-user-id,x-tenant-id,x-openstack-request-id"},{"line_number":125,"context_line":"allow_methods \u003d GET,POST,PUT,PATCH,DELETE"}],"source_content_type":"text/x-jinja2","patch_set":1,"id":"5f7c97a3_fdd1dff9","line":122,"updated":"2018-06-29 17:05:23.000000000","message":"If you are going to wire this in group_vars, i\u0027m thinking you\u0027ll probably want\n{% if glance_cors_allowed_origin is not none %}","commit_id":"05d8887f91ad28f859949dc4e63772fd10b86791"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"32794ef1393cf0f5c4fc2eb2a36b4e2a3d03d560","unresolved":false,"context_lines":[{"line_number":119,"context_line":"enable_proxy_headers_parsing \u003d True"},{"line_number":120,"context_line":"{% endif %}"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"{% if glance_cors_allowed_origin is defined %}"},{"line_number":123,"context_line":"[cors]"},{"line_number":124,"context_line":"allow_headers \u003d origin,content-md5,x-image-meta-checksum,x-storage-token,accept-encoding,x-auth-token,x-identity-status,x-roles,x-service-catalog,x-user-id,x-tenant-id,x-openstack-request-id"},{"line_number":125,"context_line":"allow_methods \u003d GET,POST,PUT,PATCH,DELETE"}],"source_content_type":"text/x-jinja2","patch_set":1,"id":"5f7c97a3_b33a6b94","line":122,"range":{"start_line":122,"start_character":0,"end_line":122,"end_character":46},"updated":"2018-07-04 12:25:40.000000000","message":"With my suggestion in the defaults, this becomes:\n\n{% if glance_cors_allowed_origin is not none %}","commit_id":"05d8887f91ad28f859949dc4e63772fd10b86791"}]}
