From 43bffb0d5c0f2c65aaf4cdf299728774f7c2e05b Mon Sep 17 00:00:00 2001 From: Sarafraj Singh Date: Wed, 22 Jun 2016 12:31:49 -0500 Subject: [PATCH] Improve help text of crypto.py Implements blueprint centralize-config-options-newton Change-Id: I7ccfc68d8fbab72119a6409a6d7775430282f13c --- nova/conf/crypto.py | 159 +++++++++++++++++++++++++++++++++----------- 1 file changed, 121 insertions(+), 38 deletions(-) diff --git a/nova/conf/crypto.py b/nova/conf/crypto.py index 116c547f4b16..3b8df1bd2061 100644 --- a/nova/conf/crypto.py +++ b/nova/conf/crypto.py @@ -17,57 +17,140 @@ import os from oslo_config import cfg from nova.conf import paths -from nova.i18n import _ crypto_opts_group = cfg.OptGroup( - 'crypto', - title='Crypto Options') + "crypto", + title="Crypto Options") crypto_opts = [ cfg.StrOpt( - 'ca_file', - default='cacert.pem', - deprecated_group='DEFAULT', - help=_('Filename of root CA')), + "ca_file", + default="cacert.pem", + deprecated_group="DEFAULT", + help=""" +Filename of root CA (Certificate Authority). This is a container format + and includes root certificates. + +* Possible values: + + Any file name containing root CA, cacert.pem is default + +* Related options: + + ca_path +"""), cfg.StrOpt( - 'key_file', - default=os.path.join('private', 'cakey.pem'), - deprecated_group='DEFAULT', - help=_('Filename of private key')), + "key_file", + default=os.path.join("private", "cakey.pem"), + deprecated_group="DEFAULT", + help=""" +Filename of a private key. + +* Possible values: + + Private key file name, private/cakey.pem is default + +* Related options: + + keys_path +"""), cfg.StrOpt( - 'crl_file', - default='crl.pem', - deprecated_group='DEFAULT', - help=_('Filename of root Certificate Revocation List')), + "crl_file", + default="crl.pem", + deprecated_group="DEFAULT", + help=""" +Filename of root Certificate Revocation List (CRL). This is a list of +certificates that have been revoked, and therefore, entities presenting +those (revoked) certificates should no longer be trusted. + +* Possible values: + + crl.pem is default + +* Related options: + + ca_path +"""), cfg.StrOpt( - 'keys_path', - default=paths.state_path_def('keys'), - deprecated_group='DEFAULT', - help=_('Where we keep our keys')), + "keys_path", + default=paths.state_path_def("keys"), + deprecated_group="DEFAULT", + help=""" +Directory path where keys are located. + +* Possible values: + + $state_path/keys is default. + +* Related options: + + key_file +"""), cfg.StrOpt( - 'ca_path', - default=paths.state_path_def('CA'), - deprecated_group='DEFAULT', - help=_('Where we keep our root CA')), + "ca_path", + default=paths.state_path_def("CA"), + deprecated_group="DEFAULT", + help=""" +Directory path where root CA is located. + +* Possible values: + + $state_path/CA is default + +* Related options: + + ca_file +"""), cfg.BoolOpt( - 'use_project_ca', + "use_project_ca", default=False, - deprecated_group='DEFAULT', - help=_('Should we use a CA for each project?')), + deprecated_group="DEFAULT", + help=""" +Option to enable/disable use of CA for each project. + +* Possible values: + + True, False is default + +* Related options: + + None +"""), cfg.StrOpt( - 'user_cert_subject', - default='/C=US/ST=California/O=OpenStack/' - 'OU=NovaDev/CN=%.16s-%.16s-%s', - deprecated_group='DEFAULT', - help=_('Subject for certificate for users, %s for ' - 'project, user, timestamp')), + "user_cert_subject", + default="/C=US/ST=California/O=OpenStack/" + "OU=NovaDev/CN=%.16s-%.16s-%s", + deprecated_group="DEFAULT", + help=""" +Subject for certificate for users, %s for +project, user, timestamp + +* Possible values: + + Any subject for users certificate. + +* Related options: + + None +"""), cfg.StrOpt( - 'project_cert_subject', - default='/C=US/ST=California/O=OpenStack/' - 'OU=NovaDev/CN=project-ca-%.16s-%s', - deprecated_group='DEFAULT', - help=_('Subject for certificate for projects, %s for ' - 'project, timestamp'))] + "project_cert_subject", + default="/C=US/ST=California/O=OpenStack/" + "OU=NovaDev/CN=project-ca-%.16s-%s", + deprecated_group="DEFAULT", + help=""" +Subject for certificate for projects, %s for +project, timestamp + +* Possible values: + + Any subject for projects certificate. + +* Related options: + + None +"""), +] def register_opts(conf):