~charmers/charms/precise/cinder/trunk

« back to all changes in this revision

Viewing changes to templates/grizzly/api-paste.ini

  • Committer: Adam Gandelman
  • Date: 2013-10-17 21:48:08 UTC
  • Revision ID: adamg@canonical.com-20131017214808-k52pya40bowxzg4i
Merging python-redux and havana work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# grizzly
 
2
###############################################################################
 
3
# [ WARNING ]
 
4
# cinder configuration file maintained by Juju
 
5
# local changes may be overwritten.
 
6
###############################################################################
 
7
 
 
8
#############
 
9
# OpenStack #
 
10
#############
 
11
 
 
12
[composite:osapi_volume]
 
13
use = call:cinder.api:root_app_factory
 
14
/: apiversions
 
15
/v1: openstack_volume_api_v1
 
16
/v2: openstack_volume_api_v2
 
17
 
 
18
[composite:openstack_volume_api_v1]
 
19
use = call:cinder.api.middleware.auth:pipeline_factory
 
20
noauth = faultwrap sizelimit noauth apiv1
 
21
keystone = faultwrap sizelimit authtoken keystonecontext apiv1
 
22
keystone_nolimit = faultwrap sizelimit authtoken keystonecontext apiv1
 
23
 
 
24
[composite:openstack_volume_api_v2]
 
25
use = call:cinder.api.middleware.auth:pipeline_factory
 
26
noauth = faultwrap sizelimit noauth apiv2
 
27
keystone = faultwrap sizelimit authtoken keystonecontext apiv2
 
28
keystone_nolimit = faultwrap sizelimit authtoken keystonecontext apiv2
 
29
 
 
30
[filter:faultwrap]
 
31
paste.filter_factory = cinder.api.middleware.fault:FaultWrapper.factory
 
32
 
 
33
[filter:noauth]
 
34
paste.filter_factory = cinder.api.middleware.auth:NoAuthMiddleware.factory
 
35
 
 
36
[filter:sizelimit]
 
37
paste.filter_factory = cinder.api.middleware.sizelimit:RequestBodySizeLimiter.factory
 
38
 
 
39
[app:apiv1]
 
40
paste.app_factory = cinder.api.v1.router:APIRouter.factory
 
41
 
 
42
[app:apiv2]
 
43
paste.app_factory = cinder.api.v2.router:APIRouter.factory
 
44
 
 
45
[pipeline:apiversions]
 
46
pipeline = faultwrap osvolumeversionapp
 
47
 
 
48
[app:osvolumeversionapp]
 
49
paste.app_factory = cinder.api.versions:Versions.factory
 
50
 
 
51
##########
 
52
# Shared #
 
53
##########
 
54
 
 
55
[filter:keystonecontext]
 
56
paste.filter_factory = cinder.api.middleware.auth:CinderKeystoneContext.factory
 
57
 
 
58
[filter:authtoken]
 
59
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
 
60
{% if service_host -%}
 
61
service_protocol = {{ service_protocol }}
 
62
service_host = {{ service_host }}
 
63
service_port = {{ service_port }}
 
64
auth_host = {{ auth_host }}
 
65
auth_port = {{ auth_port }}
 
66
auth_protocol =  {{ auth_protocol }}
 
67
admin_tenant_name = {{ admin_tenant_name }}
 
68
admin_user = {{ admin_user }}
 
69
admin_password = {{ admin_password }}
 
70
signing_dir = /var/lib/cinder
 
71
{% endif -%}