]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Move auth_token configurations to quantum.conf
authorAkihiro MOTOKI <motoki@da.jp.nec.com>
Mon, 11 Feb 2013 13:31:19 +0000 (22:31 +0900)
committerAkihiro MOTOKI <motoki@da.jp.nec.com>
Mon, 11 Feb 2013 13:31:19 +0000 (22:31 +0900)
keystone auth_token middleware now allows quantum to have auth_token
configuration in quantum.conf. This commit moves the example of
auth_token configuration from api-paste.ini to quantum.conf.
This simplifies user configuations and users is no longer required
to edit api-paste.ini.

This change does not break backward compatibility. auth_token first
tries the configurations in /etc/quantum/api-paste.ini and then the
above configurations. Thus a user who already use api-paste.ini
does not need to change it.

DocImpact

Change-Id: I5a4c48b14428e29ea2a331880e1de0afd69c97b5

etc/api-paste.ini
etc/quantum.conf

index c2ca6665d01ad8e805e83550650737e53a665a0a..b8e8ee1425deb882598b21133bbc0b57ddb5094b 100644 (file)
@@ -13,13 +13,6 @@ paste.filter_factory = quantum.auth:QuantumKeystoneContext.factory
 
 [filter:authtoken]
 paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
-auth_host = 127.0.0.1
-auth_port = 35357
-auth_protocol = http
-admin_tenant_name = %SERVICE_TENANT_NAME%
-admin_user = %SERVICE_USER%
-admin_password = %SERVICE_PASSWORD%
-signing_dir = /var/lib/quantum/keystone-signing
 
 [filter:extensions]
 paste.filter_factory = quantum.api.extensions:plugin_aware_extension_middleware_factory
index 01c00bfbe08d64bd2ba9d93c6c117d21de1d2fcd..f78da1deaec6d2cf46845bd36d32f99bb9587495 100644 (file)
@@ -207,3 +207,12 @@ notification_topics = notifications
 # root filter facility.
 # Change to "sudo" to skip the filtering and just run the comand directly
 # root_helper = sudo
+
+[keystone_authtoken]
+auth_host = 127.0.0.1
+auth_port = 35357
+auth_protocol = http
+admin_tenant_name = %SERVICE_TENANT_NAME%
+admin_user = %SERVICE_USER%
+admin_password = %SERVICE_PASSWORD%
+signing_dir = /var/lib/quantum/keystone-signing