]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Move heat-api auth_token conf from paste.ini
authorSteve Baker <sbaker@redhat.com>
Tue, 2 Apr 2013 23:29:50 +0000 (12:29 +1300)
committerSteve Baker <sbaker@redhat.com>
Mon, 22 Apr 2013 22:29:02 +0000 (10:29 +1200)
keystone auth_token middleware now allows heat to have auth_token
configuration in heat-api.conf. Moves the example of
auth_token configuration from heat-api-paste.ini to heat-api.conf.
This simplifies user configuations and users is no longer required
to edit heat-api-paste.ini.

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

Change-Id: Ia0a4d912cd7380094e121ee4af733277ca4d812e
Blueprint: keystone-middleware

etc/heat/heat-api-cfn-paste.ini
etc/heat/heat-api-cfn.conf
etc/heat/heat-api-cloudwatch-paste.ini
etc/heat/heat-api-cloudwatch.conf
etc/heat/heat-api-paste.ini
etc/heat/heat-api.conf

index 83adcd67b46d34fbf3912640f17ca7fa133138b7..5e8fede7058f2388c1e049a3549cebec22fda44a 100644 (file)
@@ -29,13 +29,3 @@ keystone_ec2_uri = http://localhost:5000/v2.0/ec2tokens
 
 [filter:authtoken]
 paste.filter_factory = heat.common.auth_token:filter_factory
-auth_host = 127.0.0.1
-auth_port = 35357
-auth_protocol = http
-auth_uri = http://127.0.0.1:5000/v2.0
-
-# These must be set to your local values in order for the token
-# authentication to work.
-admin_tenant_name = service
-admin_user = heat
-admin_password = verybadpass
index b2d3ec9b66087083afd89b8fcbcbd0a1b6658ff3..a5eea5fbd5a0b21804b5d990c5abe8cd027e0bea 100644 (file)
@@ -28,3 +28,15 @@ use_syslog = False
 # syslog_log_facility = LOG_LOCAL0
 
 rpc_backend=heat.openstack.common.rpc.impl_qpid
+
+[keystone_authtoken]
+auth_host = 127.0.0.1
+auth_port = 35357
+auth_protocol = http
+auth_uri = http://127.0.0.1:5000/v2.0
+
+# These must be set to your local values in order for the token
+# authentication to work.
+admin_tenant_name = service
+admin_user = heat
+admin_password = verybadpass
index 3396e5bdc6f7e178771f97f42b4d00de0199ea73..77b6968ab5a274dfee3a9c9c87217dd8d4832d32 100644 (file)
@@ -29,13 +29,3 @@ keystone_ec2_uri = http://localhost:5000/v2.0/ec2tokens
 
 [filter:authtoken]
 paste.filter_factory = heat.common.auth_token:filter_factory
-auth_host = 127.0.0.1
-auth_port = 35357
-auth_protocol = http
-auth_uri = http://127.0.0.1:5000/v2.0
-
-# These must be set to your local values in order for the token
-# authentication to work.
-admin_tenant_name = service
-admin_user = heat
-admin_password = verybadpass
index 27f64e9af0ca5a76f4ece86e891cc31c8235511a..25761bce39550fd760e08306731a52e1f171589f 100644 (file)
@@ -26,3 +26,15 @@ bind_host = 0.0.0.0
 bind_port = 8003
 
 rpc_backend=heat.openstack.common.rpc.impl_qpid
+
+[keystone_authtoken]
+auth_host = 127.0.0.1
+auth_port = 35357
+auth_protocol = http
+auth_uri = http://127.0.0.1:5000/v2.0
+
+# These must be set to your local values in order for the token
+# authentication to work.
+admin_tenant_name = service
+admin_user = heat
+admin_password = verybadpass
index 68bd6a9d8139d02b642de78af6d04af75e4756c1..ebe584c721651a03b235ed5cb357f1e0482b6e65 100644 (file)
@@ -32,16 +32,6 @@ paste.filter_factory = heat.common.context:ContextMiddleware_filter_factory
 
 [filter:authtoken]
 paste.filter_factory = heat.common.auth_token:filter_factory
-auth_host = 127.0.0.1
-auth_port = 35357
-auth_protocol = http
-auth_uri = http://127.0.0.1:5000/v2.0
-
-# These must be set to your local values in order for the token
-# authentication to work.
-admin_tenant_name = service
-admin_user = heat
-admin_password = verybadpass
 
 [filter:custombackendauth]
 paste.filter_factory = heat.common.custom_backend_auth:filter_factory
index f27adff220df09d66c97e5e76a1b0c2b7a89ab24..a3db9dacabb40ee166d75bbeb392bc070a8a5fda 100644 (file)
@@ -32,3 +32,15 @@ rpc_backend=heat.openstack.common.rpc.impl_qpid
 # Uncomment this if you're using a custom cloud backend:
 # [paste_deploy]
 # flavor = custombackend
+
+[keystone_authtoken]
+auth_host = 127.0.0.1
+auth_port = 35357
+auth_protocol = http
+auth_uri = http://127.0.0.1:5000/v2.0
+
+# These must be set to your local values in order for the token
+# authentication to work.
+admin_tenant_name = service
+admin_user = heat
+admin_password = verybadpass