Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Enable Ceph RGW 'account in url' option"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Jun 20, 2019
2 parents 5359e7e + 7c37954 commit 2aaf52e
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 72 deletions.
1 change: 1 addition & 0 deletions deployment/ceph-ansible/ceph-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,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
Expand Down
6 changes: 3 additions & 3 deletions network/endpoints/endpoint_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
147 changes: 78 additions & 69 deletions network/endpoints/endpoint_map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -650,29 +650,32 @@ outputs:
protocol:
get_param: [EndpointMap, CephRgwAdmin, protocol]
uri:
make_url:
scheme:
get_param: [EndpointMap, CephRgwAdmin, protocol]
host:
str_replace:
template:
get_param: [EndpointMap, CephRgwAdmin, host]
params:
CLOUDNAME:
get_param:
- CloudEndpoints
- get_param: [ServiceNetMap, CephRgwNetwork]
IP_ADDRESS:
get_param:
- NetIpMap
- str_replace:
params:
NETWORK:
get_param: [ServiceNetMap, CephRgwNetwork]
template: NETWORK_uri
port:
get_param: [EndpointMap, CephRgwAdmin, port]
path: /swift/v1
list_join:
- ''
- - make_url:
scheme:
get_param: [EndpointMap, CephRgwAdmin, protocol]
host:
str_replace:
template:
get_param: [EndpointMap, CephRgwAdmin, host]
params:
CLOUDNAME:
get_param:
- CloudEndpoints
- get_param: [ServiceNetMap, CephRgwNetwork]
IP_ADDRESS:
get_param:
- NetIpMap
- str_replace:
params:
NETWORK:
get_param: [ServiceNetMap, CephRgwNetwork]
template: NETWORK_uri
port:
get_param: [EndpointMap, CephRgwAdmin, port]
path: /swift/v1/AUTH_
- '%(project_id)s'
uri_no_suffix:
make_url:
scheme:
Expand Down Expand Up @@ -732,29 +735,32 @@ outputs:
protocol:
get_param: [EndpointMap, CephRgwInternal, protocol]
uri:
make_url:
scheme:
get_param: [EndpointMap, CephRgwInternal, protocol]
host:
str_replace:
template:
get_param: [EndpointMap, CephRgwInternal, host]
params:
CLOUDNAME:
get_param:
- CloudEndpoints
- get_param: [ServiceNetMap, CephRgwNetwork]
IP_ADDRESS:
get_param:
- NetIpMap
- str_replace:
params:
NETWORK:
get_param: [ServiceNetMap, CephRgwNetwork]
template: NETWORK_uri
port:
get_param: [EndpointMap, CephRgwInternal, port]
path: /swift/v1
list_join:
- ''
- - make_url:
scheme:
get_param: [EndpointMap, CephRgwInternal, protocol]
host:
str_replace:
template:
get_param: [EndpointMap, CephRgwInternal, host]
params:
CLOUDNAME:
get_param:
- CloudEndpoints
- get_param: [ServiceNetMap, CephRgwNetwork]
IP_ADDRESS:
get_param:
- NetIpMap
- str_replace:
params:
NETWORK:
get_param: [ServiceNetMap, CephRgwNetwork]
template: NETWORK_uri
port:
get_param: [EndpointMap, CephRgwInternal, port]
path: /swift/v1/AUTH_
- '%(project_id)s'
uri_no_suffix:
make_url:
scheme:
Expand Down Expand Up @@ -814,29 +820,32 @@ outputs:
protocol:
get_param: [EndpointMap, CephRgwPublic, protocol]
uri:
make_url:
scheme:
get_param: [EndpointMap, CephRgwPublic, protocol]
host:
str_replace:
template:
get_param: [EndpointMap, CephRgwPublic, host]
params:
CLOUDNAME:
get_param:
- CloudEndpoints
- get_param: [ServiceNetMap, PublicNetwork]
IP_ADDRESS:
get_param:
- NetIpMap
- str_replace:
params:
NETWORK:
get_param: [ServiceNetMap, PublicNetwork]
template: NETWORK_uri
port:
get_param: [EndpointMap, CephRgwPublic, port]
path: /swift/v1
list_join:
- ''
- - make_url:
scheme:
get_param: [EndpointMap, CephRgwPublic, protocol]
host:
str_replace:
template:
get_param: [EndpointMap, CephRgwPublic, host]
params:
CLOUDNAME:
get_param:
- CloudEndpoints
- get_param: [ServiceNetMap, PublicNetwork]
IP_ADDRESS:
get_param:
- NetIpMap
- str_replace:
params:
NETWORK:
get_param: [ServiceNetMap, PublicNetwork]
template: NETWORK_uri
port:
get_param: [EndpointMap, CephRgwPublic, port]
path: /swift/v1/AUTH_
- '%(project_id)s'
uri_no_suffix:
make_url:
scheme:
Expand Down

0 comments on commit 2aaf52e

Please sign in to comment.