Merge "Auto generate cyborg.conf with oslo-config-generator"

This commit is contained in:
Zuul 2017-12-27 04:31:42 +00:00 committed by Gerrit Code Review
commit 6aff6027fa
3 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,5 @@
To generate the sample cyborg.conf file, run the following
command from the top level of the cyborg directory:
tox -egenconfig

View File

@ -0,0 +1,14 @@
[DEFAULT]
output_file = etc/cyborg/cyborg.conf.sample
wrap_width = 62
namespace = cyborg
namespace = oslo.db
namespace = oslo.messaging
namespace = oslo.policy
namespace = oslo.log
namespace = oslo.reports
namespace = oslo.service.service
namespace = oslo.service.periodic_task
namespace = oslo.service.sslutils
namespace = keystonemiddleware.auth_token

11
tox.ini
View File

@ -22,6 +22,13 @@ envdir = {toxworkdir}/venv
commands =
oslopolicy-sample-generator --config-file=tools/config/cyborg-policy-generator.conf
[testenv:genconfig]
sitepackages = False
envdir = {toxworkdir}/venv
commands =
oslo-config-generator --config-file=tools/config/cyborg-config-generator.conf
[testenv:pep8]
commands = pep8 {posargs}
@ -36,7 +43,9 @@ commands = {posargs}
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx
commands =
python setup.py build_sphinx
oslo-config-generator --config-file=tools/config/cyborg-config-generator.conf
[testenv:debug]
commands = oslo_debug_helper -t cyborg/tests {posargs}