Add option to generate sample conf file.
This patch allows user to use `tox -egenconfig` to directly generate a sample conf file in etc/cloudpulse/cloudpulse.conf.sample. This helps in vetting any doubts if the already given conf is outdated or has incorrect config options. Change-Id: Ib25b09c838114dd022a28b7b1b5e8d9c190a817b
This commit is contained in:
parent
5360a8d4db
commit
7f004cd9dc
7
etc/cloudpulse/cloudpulse-config-generator.conf
Normal file
7
etc/cloudpulse/cloudpulse-config-generator.conf
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
output_file = etc/cloudpulse/cloudpulse.conf.sample
|
||||||
|
wrap_width = 79
|
||||||
|
namespace = cloudpulse
|
||||||
|
namespace = oslo.messaging
|
||||||
|
namespace = oslo.db
|
||||||
|
namespace = keystonemiddleware.auth_token
|
@ -32,6 +32,8 @@ all_files = 1
|
|||||||
[entry_points]
|
[entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
cloudpulse-server = cloudpulse.cmd.api:main
|
cloudpulse-server = cloudpulse.cmd.api:main
|
||||||
|
oslo.config.opts =
|
||||||
|
cloudpulse = cloudpulse.opts:list_opts
|
||||||
|
|
||||||
[upload_sphinx]
|
[upload_sphinx]
|
||||||
upload-dir = doc/build/html
|
upload-dir = doc/build/html
|
||||||
|
3
tox.ini
3
tox.ini
@ -18,6 +18,9 @@ commands = flake8
|
|||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
|
[testenv:genconfig]
|
||||||
|
commands = oslo-config-generator --config-file etc/cloudpulse/cloudpulse-config-generator.conf
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands = python setup.py test --coverage --testr-args='{posargs}'
|
commands = python setup.py test --coverage --testr-args='{posargs}'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user