use config options from keystoneauth1 under placement

this avoid manual syncup of options from keystoneauth plus gives us the
ability to more options as needed by cyborg

Change-Id: I3ed37cf68be985b7ca06f02244534aebc0137b68
Story: 2002169
Task: 20026
This commit is contained in:
Sumit Jamgade 2018-06-07 11:55:55 +02:00
parent 10c394406f
commit 6498dd8a0f
1 changed files with 3 additions and 37 deletions

View File

@ -17,6 +17,7 @@ import os
import socket
from oslo_config import cfg
from keystoneauth1 import loading as k_loading
from cyborg.common.i18n import _
@ -73,43 +74,6 @@ placement_opts = [
help=_('Type of the placement endpoint to use. This endpoint '
'will be looked up in the keystone catalog and should '
'be one of public, internal or admin.')),
cfg.BoolOpt('insecure',
default=False,
help="""
If true, the vCenter server certificate is not verified.
If false, then the default CA truststore is used for
verification. Related options:
* ca_file: This option is ignored if "ca_file" is set.
"""),
cfg.StrOpt('cafile',
default=None,
help="""
Specifies the CA bundle file to be used in verifying the
vCenter server certificate.
"""),
cfg.StrOpt('certfile',
default=None,
help="""
Specifies the certificate file to be used in verifying
the vCenter server certificate.
"""),
cfg.StrOpt('keyfile',
default=None,
help="""
Specifies the key file to be used in verifying the vCenter
server certificate.
"""),
cfg.IntOpt('timeout',
default=None,
help=_('Timeout for inactive connections (in seconds)')),
cfg.BoolOpt('split_loggers',
default=False,
help=_('Split the logging of requests across multiple loggers '
'instead of just one. Defaults to False.')),
cfg.IntOpt('collect_timing',
default=False,
help=_('Whether or not to collect per-method timing information'
' for each API call. (optional,defaults to False')),
]
@ -120,4 +84,6 @@ def register_opts(conf):
def register_placement_opts(cfg=cfg.CONF):
cfg.register_opts(k_loading.get_session_conf_options(),
group=PLACEMENT_CONF_SECTION)
cfg.register_opts(placement_opts, group=PLACEMENT_CONF_SECTION)