Enable Ceph RGW 'account in url' option

This requires an update of the endpoint but is necessary to be able
to use public-readable containers (like temporary URLs) with RGW.

Change-Id: I6bd11bdf9c74db24c0d21fa600030e9f3b144df0
Closes-Bug: 1826894
(cherry picked from commit 7c379543cc)
This commit is contained in:
Giulio Fidente 2019-04-29 17:49:48 +02:00
parent 14f4f239d6
commit 086238e911
3 changed files with 82 additions and 72 deletions

View File

@ -365,6 +365,7 @@ resources:
rgw_keystone_revocation_interval: '0'
rgw_s3_auth_use_keystone: 'true'
rgw_swift_versioning_enabled: 'true'
rgw_swift_account_in_url: 'true'
- {get_param: CephConfigOverrides}
ntp_service_enabled: false
generate_fsid: false

View File

@ -309,15 +309,15 @@ CephRgw:
Internal:
net_param: CephRgw
uri_suffixes:
'': /swift/v1
'': /swift/v1/AUTH_%(project_id)s
Public:
net_param: Public
uri_suffixes:
'': /swift/v1
'': /swift/v1/AUTH_%(project_id)s
Admin:
net_param: CephRgw
uri_suffixes:
'': /swift/v1
'': /swift/v1/AUTH_%(project_id)s
port: 8080
Sahara:

View File

@ -650,7 +650,9 @@ outputs:
protocol:
get_param: [EndpointMap, CephRgwAdmin, protocol]
uri:
make_url:
list_join:
- ''
- - make_url:
scheme:
get_param: [EndpointMap, CephRgwAdmin, protocol]
host:
@ -672,7 +674,8 @@ outputs:
template: NETWORK_uri
port:
get_param: [EndpointMap, CephRgwAdmin, port]
path: /swift/v1
path: /swift/v1/AUTH_
- '%(project_id)s'
uri_no_suffix:
make_url:
scheme:
@ -732,7 +735,9 @@ outputs:
protocol:
get_param: [EndpointMap, CephRgwInternal, protocol]
uri:
make_url:
list_join:
- ''
- - make_url:
scheme:
get_param: [EndpointMap, CephRgwInternal, protocol]
host:
@ -754,7 +759,8 @@ outputs:
template: NETWORK_uri
port:
get_param: [EndpointMap, CephRgwInternal, port]
path: /swift/v1
path: /swift/v1/AUTH_
- '%(project_id)s'
uri_no_suffix:
make_url:
scheme:
@ -814,7 +820,9 @@ outputs:
protocol:
get_param: [EndpointMap, CephRgwPublic, protocol]
uri:
make_url:
list_join:
- ''
- - make_url:
scheme:
get_param: [EndpointMap, CephRgwPublic, protocol]
host:
@ -836,7 +844,8 @@ outputs:
template: NETWORK_uri
port:
get_param: [EndpointMap, CephRgwPublic, port]
path: /swift/v1
path: /swift/v1/AUTH_
- '%(project_id)s'
uri_no_suffix:
make_url:
scheme: