Skip to content

Commit

Permalink
Merge "Add documentation for some API parameters"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Dec 5, 2013
2 parents 5a51410 + 2425b93 commit a3a29e6
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
53 changes: 53 additions & 0 deletions doc/source/configuring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ certificates provided during an SSL handshake. This is ignored if

Optional. Default: not enabled.

Configurating Registry Access
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

There are a number of configuration options in Glance that control how
the API server accesses the registry server.

* ``registry_client_protocol=PROTOCOL``

If you run a secure Registry server, you need to set this value to ``https``
Expand Down Expand Up @@ -249,6 +255,53 @@ Optional. Default: ``600``.
The period of time, in seconds, that the API server will wait for a registry
request to complete. A value of '0' implies no timeout.

* ``use_user_token=True``

Optional. Default: True

Pass the user token through for API requests to the registry.

If 'use_user_token' is not in effect then admin credentials can be
specified (see below). If admin credentials are specified then they are
used to generate a token; this token rather than the original user's
token is used for requests to the registry.

* ``admin_user=USER``
If 'use_user_token' is not in effect then admin credentials can be
specified. Use this parameter to specify the username.

Optional. Default: None

* ``admin_password=PASSWORD``
If 'use_user_token' is not in effect then admin credentials can be
specified. Use this parameter to specify the password.

Optional. Default: None

* ``admin_tenant_name=TENANTNAME``
If 'use_user_token' is not in effect then admin credentials can be
specified. Use this parameter to specify the tenant name.

Optional. Default: None

* ``auth_url=URL``
If 'use_user_token' is not in effect then admin credentials can be
specified. Use this parameter to specify the Keystone endpoint.

Optional. Default: None

* ``auth_strategy=STRATEGY``
If 'use_user_token' is not in effect then admin credentials can be
specified. Use this parameter to specify the auth strategy.

Optional. Default: keystone

* ``auth_region=REGION``
If 'use_user_token' is not in effect then admin credentials can be
specified. Use this parameter to specify the region.

Optional. Default: None


Configuring Logging in Glance
-----------------------------
Expand Down
20 changes: 20 additions & 0 deletions etc/glance-api.conf
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,26 @@ registry_client_protocol = http
# Default: False
#sqlalchemy_debug = True

# Pass the user's token through for API requests to the registry.
# Default: True
#use_user_token = True

# If 'use_user_token' is not in effect then admin credentials
# can be specified. Requests to the registry on behalf of
# the API will use these credentials.
# Admin user name
#admin_user = None
# Admin password
#admin_password = None
# Admin tenant name
#admin_tenant_name = None
# Keystone endpoint
#auth_url = None
# Keystone region
#auth_region = None
# Auth strategy
#auth_strategy = keystone

# ============ Notification System Options =====================

# Notifications can be sent when images are create, updated or deleted.
Expand Down

0 comments on commit a3a29e6

Please sign in to comment.