Commit 6650fda680310e71b5dda7764bf4033f670d90f0 is no longer needed:
https://review.openstack.org/#/c/46048 has been merged.
This reverts commit 6650fda680310e71b5dda7764bf4033f670d90f0.
Change-Id: I47d28a292667eb8ece2061c0ef19c7c925e5747c
| ... | ... |
@@ -67,6 +67,10 @@ SWIFT_LOOPBACK_DISK_SIZE=${SWIFT_LOOPBACK_DISK_SIZE:-$SWIFT_LOOPBACK_DISK_SIZE_D
|
| 67 | 67 |
# Default is ``staticweb, tempurl, formpost`` |
| 68 | 68 |
SWIFT_EXTRAS_MIDDLEWARE=${SWIFT_EXTRAS_MIDDLEWARE:-tempurl formpost staticweb}
|
| 69 | 69 |
|
| 70 |
+# Set ``SWIFT_EXTRAS_MIDDLEWARE_LAST`` to extras middlewares that need to be at |
|
| 71 |
+# the end of the pipeline. |
|
| 72 |
+SWIFT_EXTRAS_MIDDLEWARE_LAST=${SWIFT_EXTRAS_MIDDLEWARE_LAST}
|
|
| 73 |
+ |
|
| 70 | 74 |
# The ring uses a configurable number of bits from a path’s MD5 hash as |
| 71 | 75 |
# a partition index that designates a device. The number of bits kept |
| 72 | 76 |
# from the hash is known as the partition power, and 2 to the partition |
| ... | ... |
@@ -255,6 +259,12 @@ function configure_swift() {
|
| 255 | 255 |
iniuncomment ${SWIFT_CONFIG_PROXY_SERVER} DEFAULT bind_port
|
| 256 | 256 |
iniset ${SWIFT_CONFIG_PROXY_SERVER} DEFAULT bind_port ${SWIFT_DEFAULT_BIND_PORT:-8080}
|
| 257 | 257 |
|
| 258 |
+ # Configure Ceilometer |
|
| 259 |
+ if is_service_enabled ceilometer; then |
|
| 260 |
+ iniset ${SWIFT_CONFIG_PROXY_SERVER} filter:ceilometer use "egg:ceilometer#swift"
|
|
| 261 |
+ SWIFT_EXTRAS_MIDDLEWARE_LAST="${SWIFT_EXTRAS_MIDDLEWARE_LAST} ceilometer"
|
|
| 262 |
+ fi |
|
| 263 |
+ |
|
| 258 | 264 |
# By default Swift will be installed with keystone and tempauth middleware |
| 259 | 265 |
# and add the swift3 middleware if its configured for it. The token for |
| 260 | 266 |
# tempauth would be prefixed with the reseller_prefix setting TEMPAUTH_ the |
| ... | ... |
@@ -264,6 +274,7 @@ function configure_swift() {
|
| 264 | 264 |
fi |
| 265 | 265 |
swift_pipeline+=" authtoken keystoneauth tempauth " |
| 266 | 266 |
sed -i "/^pipeline/ { s/tempauth/${swift_pipeline} ${SWIFT_EXTRAS_MIDDLEWARE}/ ;}" ${SWIFT_CONFIG_PROXY_SERVER}
|
| 267 |
+ sed -i "/^pipeline/ { s/proxy-server/${SWIFT_EXTRAS_MIDDLEWARE_LAST} proxy-server/ ; }" ${SWIFT_CONFIG_PROXY_SERVER}
|
|
| 267 | 268 |
|
| 268 | 269 |
iniuncomment ${SWIFT_CONFIG_PROXY_SERVER} filter:tempauth account_autocreate
|
| 269 | 270 |
iniset ${SWIFT_CONFIG_PROXY_SERVER} app:proxy-server account_autocreate true
|