summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItisha Dewan <ishadewan07@gmail.com>2016-07-13 20:22:59 +0530
committerHemanth Makkapati <hemanth.makkapati@rackspace.com>2016-08-09 17:15:48 +0000
commit135bede1cac9e117613fc9d12b8a219716df38dd (patch)
tree5ff0ea77093118ec65c0b7e3300abf8958b111fb
parent7207ffaf616db90e1efe2bb7e4184b6d90ed007b (diff)
downloadglance_store-135bede1cac9e117613fc9d12b8a219716df38dd.tar.gz
Improve help text of http driver opts
Change-Id: Id5ee58fe2628039c70a8518a596fe86f62790939 Partial-Bug: #1570946 Co-Authored-By: Itisha Dewan <ishadewan07@gmail.com> Co-Authored-By: Hemanth Makkapati <hemanth.makkapati@rackspace.com>
-rw-r--r--glance_store/_drivers/http.py67
1 files changed, 54 insertions, 13 deletions
diff --git a/glance_store/_drivers/http.py b/glance_store/_drivers/http.py
index 207b1c9..d338021 100644
--- a/glance_store/_drivers/http.py
+++ b/glance_store/_drivers/http.py
@@ -35,23 +35,64 @@ MAX_REDIRECTS = 5
_HTTP_OPTS = [
cfg.StrOpt('https_ca_certificates_file',
- help=_('Specify the path to the CA bundle file to use in '
- 'verifying the remote server certificate.')),
+ help=_("""
+Path to the CA bundle file.
+
+This configuration option enables the operator to use a custom
+Certificate Authority file to verify the remote server certificate. If
+this option is set, the ``https_insecure`` option will be ignored and
+the CA file specified will be used to authenticate the server
+certificate and establish a secure connection to the server.
+
+Possible values:
+ * A valid path to a CA file
+
+Related options:
+ * https_insecure
+
+""")),
cfg.BoolOpt('https_insecure',
default=True,
- help=_('If true, the remote server certificate is not '
- 'verified. If false, then the default CA truststore is '
- 'used for verification. This option is ignored if '
- '"https_ca_certificates_file" is set.')),
+ help=_("""
+Set verification of the remote server certificate.
+
+This configuration option takes in a boolean value to determine
+whether or not to verify the remote server certificate. If set to
+True, the remote server certificate is not verified. If the option is
+set to False, then the default CA truststore is used for verification.
+
+This option is ignored if ``https_ca_certificates_file`` is set.
+The remote server certificate will then be verified using the file
+specified using the ``https_ca_certificates_file`` option.
+
+Possible values:
+ * True
+ * False
+
+Related options:
+ * https_ca_certificates_file
+
+""")),
cfg.DictOpt('http_proxy_information',
default={},
- help=_('Specify the http/https proxy information that should '
- 'be used to connect to the remote server. The proxy '
- 'information should be a key value pair of the '
- 'scheme and proxy. e.g. http:10.0.0.1:3128. You can '
- 'specify proxies for multiple schemes by separating '
- 'the key value pairs with a comma.'
- 'e.g. http:10.0.0.1:3128, https:10.0.0.1:1080.'))]
+ help=_("""
+The http/https proxy information to be used to connect to the remote
+server.
+
+This configuration option specifies the http/https proxy information
+that should be used to connect to the remote server. The proxy
+information should be a key value pair of the scheme and proxy, for
+example, http:10.0.0.1:3128. You can also specify proxies for multiple
+schemes by separating the key value pairs with a comma, for example,
+http:10.0.0.1:3128, https:10.0.0.1:1080.
+
+Possible values:
+ * A comma separated list of scheme:proxy pairs as described above
+
+Related options:
+ * None
+
+"""))]
class StoreLocation(glance_store.location.StoreLocation):