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:
hayderimran7 2015-10-20 21:11:12 -07:00
parent 5360a8d4db
commit 7f004cd9dc
3 changed files with 12 additions and 0 deletions

View 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

View File

@ -32,6 +32,8 @@ all_files = 1
[entry_points]
console_scripts =
cloudpulse-server = cloudpulse.cmd.api:main
oslo.config.opts =
cloudpulse = cloudpulse.opts:list_opts
[upload_sphinx]
upload-dir = doc/build/html

View File

@ -18,6 +18,9 @@ commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:genconfig]
commands = oslo-config-generator --config-file etc/cloudpulse/cloudpulse-config-generator.conf
[testenv:cover]
commands = python setup.py test --coverage --testr-args='{posargs}'