Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out paste deployment config from the core glance
*.conf files into corresponding *-paste.ini files. Fixes LP #815208 Change-Id: I5acb8488cc25bb3c7dd735c8c2b0fe62fcea8e5e
- Loading branch information
Eoghan Glynn
committed
Jan 17, 2012
1 parent
195e667
commit 14593a3
Showing
15 changed files
with
159 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[pipeline:glance-api] | ||
pipeline = versionnegotiation context apiv1app | ||
# NOTE: use the following pipeline for keystone | ||
# pipeline = versionnegotiation authtoken auth-context apiv1app | ||
|
||
# To enable transparent caching of image files replace pipeline with below: | ||
# pipeline = versionnegotiation context cache apiv1app | ||
# NOTE: use the following pipeline for keystone auth (with caching) | ||
# pipeline = versionnegotiation authtoken auth-context cache apiv1app | ||
|
||
# To enable Image Cache Management API replace pipeline with below: | ||
# pipeline = versionnegotiation context cachemanage apiv1app | ||
# NOTE: use the following pipeline for keystone auth (with caching) | ||
# pipeline = versionnegotiation authtoken auth-context cachemanage apiv1app | ||
|
||
[app:apiv1app] | ||
paste.app_factory = glance.common.wsgi:app_factory | ||
glance.app_factory = glance.api.v1.router:API | ||
|
||
[filter:versionnegotiation] | ||
paste.filter_factory = glance.common.wsgi:filter_factory | ||
glance.filter_factory = glance.api.middleware.version_negotiation:VersionNegotiationFilter | ||
|
||
[filter:cache] | ||
paste.filter_factory = glance.common.wsgi:filter_factory | ||
glance.filter_factory = glance.api.middleware.cache:CacheFilter | ||
|
||
[filter:cachemanage] | ||
paste.filter_factory = glance.common.wsgi:filter_factory | ||
glance.filter_factory = glance.api.middleware.cache_manage:CacheManageFilter | ||
|
||
[filter:context] | ||
paste.filter_factory = glance.common.wsgi:filter_factory | ||
glance.filter_factory = glance.common.context:ContextMiddleware | ||
|
||
[filter:authtoken] | ||
paste.filter_factory = keystone.middleware.auth_token:filter_factory | ||
service_protocol = http | ||
service_host = 127.0.0.1 | ||
service_port = 5000 | ||
auth_host = 127.0.0.1 | ||
auth_port = 35357 | ||
auth_protocol = http | ||
auth_uri = http://127.0.0.1:5000/ | ||
admin_token = 999888777666 | ||
|
||
[filter:auth-context] | ||
paste.filter_factory = glance.common.wsgi:filter_factory | ||
glance.filter_factory = keystone.middleware.glance_auth_token:KeystoneContextMiddleware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[app:glance-pruner] | ||
paste.app_factory = glance.common.wsgi:app_factory | ||
glance.app_factory = glance.image_cache.pruner:Pruner | ||
|
||
[app:glance-prefetcher] | ||
paste.app_factory = glance.common.wsgi:app_factory | ||
glance.app_factory = glance.image_cache.prefetcher:Prefetcher | ||
|
||
[app:glance-cleaner] | ||
paste.app_factory = glance.common.wsgi:app_factory | ||
glance.app_factory = glance.image_cache.cleaner:Cleaner | ||
|
||
[app:glance-queue-image] | ||
paste.app_factory = glance.common.wsgi:app_factory | ||
glance.app_factory = glance.image_cache.queue_image:Queuer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[pipeline:glance-registry] | ||
pipeline = context registryapp | ||
# NOTE: use the following pipeline for keystone | ||
# pipeline = authtoken auth-context registryapp | ||
|
||
[app:registryapp] | ||
paste.app_factory = glance.common.wsgi:app_factory | ||
glance.app_factory = glance.registry.api.v1:API | ||
|
||
[filter:context] | ||
context_class = glance.registry.context.RequestContext | ||
paste.filter_factory = glance.common.wsgi:filter_factory | ||
glance.filter_factory = glance.common.context:ContextMiddleware | ||
|
||
[filter:authtoken] | ||
paste.filter_factory = keystone.middleware.auth_token:filter_factory | ||
service_protocol = http | ||
service_host = 127.0.0.1 | ||
service_port = 5000 | ||
auth_host = 127.0.0.1 | ||
auth_port = 35357 | ||
auth_protocol = http | ||
auth_uri = http://127.0.0.1:5000/ | ||
admin_token = 999888777666 | ||
|
||
[filter:auth-context] | ||
context_class = glance.registry.context.RequestContext | ||
paste.filter_factory = glance.common.wsgi:filter_factory | ||
glance.filter_factory = keystone.middleware.glance_auth_token:KeystoneContextMiddleware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[app:glance-scrubber] | ||
paste.app_factory = glance.common.wsgi:app_factory | ||
glance.app_factory = glance.store.scrubber:Scrubber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.