Cleanup config.py
Trailing , on last entry for each section. Put ] on its own line. This will make reviews look better since don't have to change as much to add a config option and also lead to fewer merge conflicts since fewer lines are changed. Change-Id: I58d8d826404f0b13975f114ddb3465f2773d6942
This commit is contained in:
parent
b5c5354f43
commit
471a27cce0
@ -125,7 +125,8 @@ FILE_OPTIONS = {
|
|||||||
'domain_id. Allowing such movement is not '
|
'domain_id. Allowing such movement is not '
|
||||||
'recommended if the scope of a domain admin is being '
|
'recommended if the scope of a domain admin is being '
|
||||||
'restricted by use of an appropriate policy file '
|
'restricted by use of an appropriate policy file '
|
||||||
'(see policy.v3cloudsample as an example).')],
|
'(see policy.v3cloudsample as an example).'),
|
||||||
|
],
|
||||||
'identity': [
|
'identity': [
|
||||||
cfg.StrOpt('default_domain_id', default='default',
|
cfg.StrOpt('default_domain_id', default='default',
|
||||||
help='This references the domain to use for all '
|
help='This references the domain to use for all '
|
||||||
@ -161,7 +162,8 @@ FILE_OPTIONS = {
|
|||||||
'decrease to improve performance.'),
|
'decrease to improve performance.'),
|
||||||
cfg.IntOpt('list_limit', default=None,
|
cfg.IntOpt('list_limit', default=None,
|
||||||
help='Maximum number of entities that will be returned in '
|
help='Maximum number of entities that will be returned in '
|
||||||
'an identity collection.')],
|
'an identity collection.'),
|
||||||
|
],
|
||||||
'trust': [
|
'trust': [
|
||||||
cfg.BoolOpt('enabled', default=True,
|
cfg.BoolOpt('enabled', default=True,
|
||||||
help='Delegation and impersonation features can be '
|
help='Delegation and impersonation features can be '
|
||||||
@ -172,7 +174,8 @@ FILE_OPTIONS = {
|
|||||||
'os_inherit': [
|
'os_inherit': [
|
||||||
cfg.BoolOpt('enabled', default=False,
|
cfg.BoolOpt('enabled', default=False,
|
||||||
help='role-assignment inheritance to projects from '
|
help='role-assignment inheritance to projects from '
|
||||||
'owning domain can be optionally enabled.')],
|
'owning domain can be optionally enabled.'),
|
||||||
|
],
|
||||||
'token': [
|
'token': [
|
||||||
cfg.ListOpt('bind', default=[],
|
cfg.ListOpt('bind', default=[],
|
||||||
help='External auth mechanisms that should add bind '
|
help='External auth mechanisms that should add bind '
|
||||||
@ -212,7 +215,7 @@ FILE_OPTIONS = {
|
|||||||
'These enumerations are processed to determine the '
|
'These enumerations are processed to determine the '
|
||||||
'list of tokens to revoke. Only disable if you are '
|
'list of tokens to revoke. Only disable if you are '
|
||||||
'switching to using the Revoke extension with a '
|
'switching to using the Revoke extension with a '
|
||||||
'backend other than KVS, which stores events in memory.')
|
'backend other than KVS, which stores events in memory.'),
|
||||||
],
|
],
|
||||||
'revoke': [
|
'revoke': [
|
||||||
cfg.StrOpt('driver',
|
cfg.StrOpt('driver',
|
||||||
@ -277,7 +280,8 @@ FILE_OPTIONS = {
|
|||||||
'really useful if you need to see the specific '
|
'really useful if you need to see the specific '
|
||||||
'cache-backend get/set/delete calls with the '
|
'cache-backend get/set/delete calls with the '
|
||||||
'keys/values. Typically this should be left set '
|
'keys/values. Typically this should be left set '
|
||||||
'to false.')],
|
'to false.'),
|
||||||
|
],
|
||||||
'ssl': [
|
'ssl': [
|
||||||
cfg.BoolOpt('enable', default=False,
|
cfg.BoolOpt('enable', default=False,
|
||||||
help='Toggle for SSL support on the Keystone '
|
help='Toggle for SSL support on the Keystone '
|
||||||
@ -305,7 +309,8 @@ FILE_OPTIONS = {
|
|||||||
cfg.StrOpt('cert_subject',
|
cfg.StrOpt('cert_subject',
|
||||||
default='/C=US/ST=Unset/L=Unset/O=Unset/CN=localhost',
|
default='/C=US/ST=Unset/L=Unset/O=Unset/CN=localhost',
|
||||||
help='SSL certificate subject (auto generated '
|
help='SSL certificate subject (auto generated '
|
||||||
'certificate).')],
|
'certificate).'),
|
||||||
|
],
|
||||||
'signing': [
|
'signing': [
|
||||||
cfg.StrOpt('token_format', default=None,
|
cfg.StrOpt('token_format', default=None,
|
||||||
help='Deprecated in favor of provider in the '
|
help='Deprecated in favor of provider in the '
|
||||||
@ -332,7 +337,8 @@ FILE_OPTIONS = {
|
|||||||
default=('/C=US/ST=Unset/L=Unset/O=Unset/'
|
default=('/C=US/ST=Unset/L=Unset/O=Unset/'
|
||||||
'CN=www.example.com'),
|
'CN=www.example.com'),
|
||||||
help='Certificate subject (auto generated certificate) for '
|
help='Certificate subject (auto generated certificate) for '
|
||||||
'token signing.')],
|
'token signing.'),
|
||||||
|
],
|
||||||
'assignment': [
|
'assignment': [
|
||||||
# assignment has no default for backward compatibility reasons.
|
# assignment has no default for backward compatibility reasons.
|
||||||
# If assignment driver is not specified, the identity driver chooses
|
# If assignment driver is not specified, the identity driver chooses
|
||||||
@ -347,12 +353,14 @@ FILE_OPTIONS = {
|
|||||||
'no effect unless global caching is enabled.'),
|
'no effect unless global caching is enabled.'),
|
||||||
cfg.IntOpt('list_limit', default=None,
|
cfg.IntOpt('list_limit', default=None,
|
||||||
help='Maximum number of entities that will be returned '
|
help='Maximum number of entities that will be returned '
|
||||||
'in an assignment collection.')],
|
'in an assignment collection.'),
|
||||||
|
],
|
||||||
'credential': [
|
'credential': [
|
||||||
cfg.StrOpt('driver',
|
cfg.StrOpt('driver',
|
||||||
default=('keystone.credential.backends'
|
default=('keystone.credential.backends'
|
||||||
'.sql.Credential'),
|
'.sql.Credential'),
|
||||||
help='Credential backend driver.')],
|
help='Credential backend driver.'),
|
||||||
|
],
|
||||||
'oauth1': [
|
'oauth1': [
|
||||||
cfg.StrOpt('driver',
|
cfg.StrOpt('driver',
|
||||||
default='keystone.contrib.oauth1.backends.sql.OAuth1',
|
default='keystone.contrib.oauth1.backends.sql.OAuth1',
|
||||||
@ -360,8 +368,8 @@ FILE_OPTIONS = {
|
|||||||
cfg.IntOpt('request_token_duration', default=28800,
|
cfg.IntOpt('request_token_duration', default=28800,
|
||||||
help='Duration (in seconds) for the OAuth Request Token.'),
|
help='Duration (in seconds) for the OAuth Request Token.'),
|
||||||
cfg.IntOpt('access_token_duration', default=86400,
|
cfg.IntOpt('access_token_duration', default=86400,
|
||||||
help='Duration (in seconds) for the OAuth Access Token.')],
|
help='Duration (in seconds) for the OAuth Access Token.'),
|
||||||
|
],
|
||||||
'federation': [
|
'federation': [
|
||||||
cfg.StrOpt('driver',
|
cfg.StrOpt('driver',
|
||||||
default='keystone.contrib.federation.'
|
default='keystone.contrib.federation.'
|
||||||
@ -369,18 +377,21 @@ FILE_OPTIONS = {
|
|||||||
help='Federation backend driver.'),
|
help='Federation backend driver.'),
|
||||||
cfg.StrOpt('assertion_prefix', default='',
|
cfg.StrOpt('assertion_prefix', default='',
|
||||||
help='Value to be used when filtering assertion parameters '
|
help='Value to be used when filtering assertion parameters '
|
||||||
'from the environment.')],
|
'from the environment.'),
|
||||||
|
],
|
||||||
'policy': [
|
'policy': [
|
||||||
cfg.StrOpt('driver',
|
cfg.StrOpt('driver',
|
||||||
default='keystone.policy.backends.sql.Policy',
|
default='keystone.policy.backends.sql.Policy',
|
||||||
help='Policy backend driver.'),
|
help='Policy backend driver.'),
|
||||||
cfg.IntOpt('list_limit', default=None,
|
cfg.IntOpt('list_limit', default=None,
|
||||||
help='Maximum number of entities that will be returned '
|
help='Maximum number of entities that will be returned '
|
||||||
'in a policy collection.')],
|
'in a policy collection.'),
|
||||||
|
],
|
||||||
'ec2': [
|
'ec2': [
|
||||||
cfg.StrOpt('driver',
|
cfg.StrOpt('driver',
|
||||||
default='keystone.contrib.ec2.backends.kvs.Ec2',
|
default='keystone.contrib.ec2.backends.kvs.Ec2',
|
||||||
help='EC2Credential backend driver.')],
|
help='EC2Credential backend driver.'),
|
||||||
|
],
|
||||||
'endpoint_filter': [
|
'endpoint_filter': [
|
||||||
cfg.StrOpt('driver',
|
cfg.StrOpt('driver',
|
||||||
default='keystone.contrib.endpoint_filter.backends'
|
default='keystone.contrib.endpoint_filter.backends'
|
||||||
@ -388,12 +399,14 @@ FILE_OPTIONS = {
|
|||||||
help='Endpoint Filter backend driver'),
|
help='Endpoint Filter backend driver'),
|
||||||
cfg.BoolOpt('return_all_endpoints_if_no_filter', default=True,
|
cfg.BoolOpt('return_all_endpoints_if_no_filter', default=True,
|
||||||
help='Toggle to return all active endpoints if no filter '
|
help='Toggle to return all active endpoints if no filter '
|
||||||
'exists.')],
|
'exists.'),
|
||||||
|
],
|
||||||
'stats': [
|
'stats': [
|
||||||
cfg.StrOpt('driver',
|
cfg.StrOpt('driver',
|
||||||
default=('keystone.contrib.stats.backends'
|
default=('keystone.contrib.stats.backends'
|
||||||
'.kvs.Stats'),
|
'.kvs.Stats'),
|
||||||
help='Stats backend driver.')],
|
help='Stats backend driver.'),
|
||||||
|
],
|
||||||
'ldap': [
|
'ldap': [
|
||||||
cfg.StrOpt('url', default='ldap://localhost',
|
cfg.StrOpt('url', default='ldap://localhost',
|
||||||
help='URL for connecting to the LDAP server.'),
|
help='URL for connecting to the LDAP server.'),
|
||||||
@ -603,7 +616,8 @@ FILE_OPTIONS = {
|
|||||||
help='Enable TLS for communicating with LDAP servers.'),
|
help='Enable TLS for communicating with LDAP servers.'),
|
||||||
cfg.StrOpt('tls_req_cert', default='demand',
|
cfg.StrOpt('tls_req_cert', default='demand',
|
||||||
help='Valid options for tls_req_cert are demand, never, '
|
help='Valid options for tls_req_cert are demand, never, '
|
||||||
'and allow.')],
|
'and allow.'),
|
||||||
|
],
|
||||||
'auth': [
|
'auth': [
|
||||||
cfg.ListOpt('methods', default=_DEFAULT_AUTH_METHODS,
|
cfg.ListOpt('methods', default=_DEFAULT_AUTH_METHODS,
|
||||||
help='Default auth methods.'),
|
help='Default auth methods.'),
|
||||||
@ -616,18 +630,21 @@ FILE_OPTIONS = {
|
|||||||
# deals with REMOTE_USER authentication
|
# deals with REMOTE_USER authentication
|
||||||
cfg.StrOpt('external',
|
cfg.StrOpt('external',
|
||||||
default='keystone.auth.plugins.external.DefaultDomain',
|
default='keystone.auth.plugins.external.DefaultDomain',
|
||||||
help='The external (REMOTE_USER) auth plugin module.')],
|
help='The external (REMOTE_USER) auth plugin module.'),
|
||||||
|
],
|
||||||
'paste_deploy': [
|
'paste_deploy': [
|
||||||
cfg.StrOpt('config_file', default='keystone-paste.ini',
|
cfg.StrOpt('config_file', default='keystone-paste.ini',
|
||||||
help='Name of the paste configuration file that defines '
|
help='Name of the paste configuration file that defines '
|
||||||
'the available pipelines.')],
|
'the available pipelines.'),
|
||||||
|
],
|
||||||
'memcache': [
|
'memcache': [
|
||||||
cfg.ListOpt('servers', default=['localhost:11211'],
|
cfg.ListOpt('servers', default=['localhost:11211'],
|
||||||
help='Memcache servers in the format of "host:port".'),
|
help='Memcache servers in the format of "host:port".'),
|
||||||
cfg.IntOpt('max_compare_and_set_retry', default=16,
|
cfg.IntOpt('max_compare_and_set_retry', default=16,
|
||||||
help='Number of compare-and-set attempts to make when '
|
help='Number of compare-and-set attempts to make when '
|
||||||
'using compare-and-set in the token memcache back '
|
'using compare-and-set in the token memcache back '
|
||||||
'end.')],
|
'end.'),
|
||||||
|
],
|
||||||
'catalog': [
|
'catalog': [
|
||||||
cfg.StrOpt('template_file',
|
cfg.StrOpt('template_file',
|
||||||
default='default_catalog.templates',
|
default='default_catalog.templates',
|
||||||
@ -638,7 +655,8 @@ FILE_OPTIONS = {
|
|||||||
help='Catalog backend driver.'),
|
help='Catalog backend driver.'),
|
||||||
cfg.IntOpt('list_limit', default=None,
|
cfg.IntOpt('list_limit', default=None,
|
||||||
help='Maximum number of entities that will be returned '
|
help='Maximum number of entities that will be returned '
|
||||||
'in a catalog collection.')],
|
'in a catalog collection.'),
|
||||||
|
],
|
||||||
'kvs': [
|
'kvs': [
|
||||||
cfg.ListOpt('backends', default=[],
|
cfg.ListOpt('backends', default=[],
|
||||||
help='Extra dogpile.cache backend modules to register '
|
help='Extra dogpile.cache backend modules to register '
|
||||||
@ -654,7 +672,9 @@ FILE_OPTIONS = {
|
|||||||
'for debugging purposes, it is highly recommended '
|
'for debugging purposes, it is highly recommended '
|
||||||
'to always leave this set to true.'),
|
'to always leave this set to true.'),
|
||||||
cfg.IntOpt('default_lock_timeout', default=5,
|
cfg.IntOpt('default_lock_timeout', default=5,
|
||||||
help='Default lock timeout for distributed locking.')]}
|
help='Default lock timeout for distributed locking.'),
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
Loading…
Reference in New Issue
Block a user