summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDolph Mathews <dolph.mathews@rackspace.com>2011-07-12 10:58:22 -0500
committerDolph Mathews <dolph.mathews@rackspace.com>2011-07-12 10:58:22 -0500
commit96c288e9853ca5876bf8fa9726adb4cb525e0171 (patch)
treefe62fea403fd6b848c2e015af3d2d7097f430be5
parentaff79a3695f89cd91381c9496b6f9b24d253872f (diff)
Renamed service API configuration options
-rwxr-xr-xbin/keystone6
-rwxr-xr-xbin/keystone-auth4
-rwxr-xr-xetc/keystone.conf14
-rw-r--r--keystone/routers/service.py2
-rwxr-xr-xkeystone/server.py2
5 files changed, 14 insertions, 14 deletions
diff --git a/bin/keystone b/bin/keystone
index 1725ed25..fc29b735 100755
--- a/bin/keystone
+++ b/bin/keystone
@@ -69,12 +69,12 @@ if __name__ == '__main__':
config_file = config.find_config_file(options, args)
print "Using config file:", config_file
- # Load Public API server
+ # Load Service API server
server = wsgi.Server()
- server.start(app, int(conf['public_port']), conf['public_host'])
+ server.start(app, int(conf['service_port']), conf['service_host'])
print "Service API listening on %s:%s" % (
- conf['public_host'], conf['public_port'])
+ conf['service_host'], conf['service_port'])
# Load Admin API server
admin_server = wsgi.Server()
diff --git a/bin/keystone-auth b/bin/keystone-auth
index e7d25fe9..bd02217a 100755
--- a/bin/keystone-auth
+++ b/bin/keystone-auth
@@ -63,10 +63,10 @@ if __name__ == '__main__':
print "Using config file:", config_file
server = wsgi.Server()
- server.start(app, int(conf['public_port']), conf['public_host'])
+ server.start(app, int(conf['service_port']), conf['service_host'])
print "Service API listening on %s:%s" % (
- conf['public_host'], conf['public_port'])
+ conf['service_host'], conf['service_port'])
server.wait()
except RuntimeError, e:
diff --git a/etc/keystone.conf b/etc/keystone.conf
index a404435e..243f9158 100755
--- a/etc/keystone.conf
+++ b/etc/keystone.conf
@@ -26,10 +26,10 @@ service-header-mappings = {
# Address to bind the API server
# TODO Properties defined within app not available via pipeline.
-public_host = 0.0.0.0
+service_host = 0.0.0.0
# Port the bind the API server to
-public_port = 5000
+service_port = 5000
# Address to bind the Admin API server
admin_host = 0.0.0.0
@@ -65,18 +65,18 @@ sql_idle_timeout = 30
[pipeline:admin]
pipeline =
urlrewritefilter
- admin_service
+ admin_api
[pipeline:keystone-legacy-auth]
pipeline =
urlrewritefilter
legacy_auth
- public_service
+ service_api
-[app:public_service]
-paste.app_factory = keystone.server:app_factory
+[app:service_api]
+paste.app_factory = keystone.server:service_app_factory
-[app:admin_service]
+[app:admin_api]
paste.app_factory = keystone.server:admin_app_factory
[filter:urlrewritefilter]
diff --git a/keystone/routers/service.py b/keystone/routers/service.py
index 68745a64..6039274d 100644
--- a/keystone/routers/service.py
+++ b/keystone/routers/service.py
@@ -8,7 +8,7 @@ from keystone.controllers.version import VersionController
from keystone.controllers.staticfiles import StaticFilesController
class ServiceApi(wsgi.Router):
- """WSGI entry point for public Keystone API requests."""
+ """WSGI entry point for Keystone Service API requests."""
def __init__(self, options):
self.options = options
diff --git a/keystone/server.py b/keystone/server.py
index d94a884d..ec5ab11d 100755
--- a/keystone/server.py
+++ b/keystone/server.py
@@ -39,7 +39,7 @@ from keystone.backends import alterdb, sqlalchemy #@UnusedImport (?)
from keystone.routers.service import ServiceApi
from keystone.routers.admin import AdminApi
-def app_factory(global_conf, **local_conf):
+def service_app_factory(global_conf, **local_conf):
"""paste.deploy app factory for creating OpenStack API server apps"""
try:
conf = global_conf.copy()