|
...
|
...
|
@@ -401,11 +401,10 @@ function configure_swift {
|
|
401
|
401
|
sed -i "/^pipeline/ { s/tempauth/${swift_pipeline} ${SWIFT_EXTRAS_MIDDLEWARE}/ ;}" ${SWIFT_CONFIG_PROXY_SERVER}
|
|
402
|
402
|
sed -i "/^pipeline/ { s/proxy-server/${SWIFT_EXTRAS_MIDDLEWARE_LAST} proxy-server/ ; }" ${SWIFT_CONFIG_PROXY_SERVER}
|
|
403
|
403
|
|
|
404
|
|
- iniuncomment ${SWIFT_CONFIG_PROXY_SERVER} filter:tempauth account_autocreate
|
|
|
404
|
+
|
|
405
|
405
|
iniset ${SWIFT_CONFIG_PROXY_SERVER} app:proxy-server account_autocreate true
|
|
406
|
406
|
|
|
407
|
|
- iniuncomment ${SWIFT_CONFIG_PROXY_SERVER} filter:tempauth reseller_prefix
|
|
408
|
|
- iniset ${SWIFT_CONFIG_PROXY_SERVER} filter:tempauth reseller_prefix "TEMPAUTH"
|
|
|
407
|
+
|
|
409
|
408
|
|
|
410
|
409
|
# Configure Crossdomain
|
|
411
|
410
|
iniset ${SWIFT_CONFIG_PROXY_SERVER} filter:crossdomain use "egg:swift#crossdomain"
|
|
...
|
...
|
@@ -422,6 +421,13 @@ function configure_swift {
|
|
422
|
422
|
iniuncomment ${SWIFT_CONFIG_PROXY_SERVER} filter:keystoneauth operator_roles
|
|
423
|
423
|
iniset ${SWIFT_CONFIG_PROXY_SERVER} filter:keystoneauth operator_roles "Member, admin"
|
|
424
|
424
|
|
|
|
425
|
+ # Configure Tempauth. In the sample config file, Keystoneauth is commented
|
|
|
426
|
+ # out. Make sure we uncomment Tempauth after we uncomment Keystoneauth
|
|
|
427
|
+ # otherwise, this code also sets the reseller_prefix for Keystoneauth.
|
|
|
428
|
+ iniuncomment ${SWIFT_CONFIG_PROXY_SERVER} filter:tempauth account_autocreate
|
|
|
429
|
+ iniuncomment ${SWIFT_CONFIG_PROXY_SERVER} filter:tempauth reseller_prefix
|
|
|
430
|
+ iniset ${SWIFT_CONFIG_PROXY_SERVER} filter:tempauth reseller_prefix "TEMPAUTH"
|
|
|
431
|
+
|
|
425
|
432
|
if is_service_enabled swift3; then
|
|
426
|
433
|
cat <<EOF >>${SWIFT_CONFIG_PROXY_SERVER}
|
|
427
|
434
|
# NOTE(chmou): s3token middleware is not updated yet to use only
|