Files
cookbook-openstack-block-st…/templates/default/api-paste.ini.erb
Jay Pipes c82ef4dbc8 Fixes from marathon chef-client debug session
* Fixes hard-coded db password for Cinder with lookup
  of the cinder_db_chef_role attribute
* Fixes typo of glance_host and glance_port in config template
* Fixes incorrect keystoneclient.middleware reference in api-paste
  template
* Removes recipes/common.rb, as it was pointless now that the
  config template processing had to be moved into each service recipe
* Removes the recipes/setup.rb, as it was all for the API service,
  so moved the keystone_register calls directly into the api.rb recipe
2012-12-07 18:07:45 -05:00

56 lines
1.9 KiB
Plaintext

#############
# Openstack #
#############
[composite:osapi_volume]
use = call:cinder.api.openstack.urlmap:urlmap_factory
/: osvolumeversions
/v1: openstack_volume_api_v1
[composite:openstack_volume_api_v1]
use = call:cinder.api.auth:pipeline_factory
noauth = faultwrap sizelimit noauth osapi_volume_app_v1
keystone = faultwrap sizelimit authtoken keystonecontext osapi_volume_app_v1
keystone_nolimit = faultwrap sizelimit authtoken keystonecontext osapi_volume_app_v1
[filter:faultwrap]
paste.filter_factory = cinder.api.openstack:FaultWrapper.factory
[filter:noauth]
paste.filter_factory = cinder.api.openstack.auth:NoAuthMiddleware.factory
[filter:sizelimit]
paste.filter_factory = cinder.api.sizelimit:RequestBodySizeLimiter.factory
[app:osapi_volume_app_v1]
paste.app_factory = cinder.api.openstack.volume:APIRouter.factory
[pipeline:osvolumeversions]
pipeline = faultwrap osvolumeversionapp
[app:osvolumeversionapp]
paste.app_factory = cinder.api.openstack.volume.versions:Versions.factory
##########
# Shared #
##########
[filter:keystonecontext]
paste.filter_factory = cinder.api.auth:CinderKeystoneContext.factory
[filter:authtoken]
# This needs to change to keystoneclient.middleware.auth_token:filter_factory
# when keystoneclient packages are updated (which contain the middleware, not
# the Keystone server package...)
paste.filter_factory = keystone.middleware.auth_token:filter_factory
service_host = <%= @identity_endpoint.host %>
service_port = <%= @identity_endpoint.port %>
service_protocol = <%= @identity_endpoint.scheme %>
auth_host = <%= @identity_admin_endpoint.host %>
auth_port = <%= @identity_admin_endpoint.port %>
auth_protocol = <%= @identity_admin_endpoint.scheme %>
admin_tenant_name = <%= node["cinder"]["service_tenant_name"] %>
admin_user = <%= node["cinder"]["service_user"] %>
admin_password = <%= node["cinder"]["service_pass"] %>
signing_dir = /var/lib/cinder