diff options
author | Lin Tan <lin.tan@intel.com> | 2015-11-19 14:50:38 +0800 |
---|---|---|
committer | Lin Tan <lin.tan@intel.com> | 2016-05-25 11:59:13 +0800 |
commit | 773aa20a4ac0364a2219877863017224c7f1089f (patch) | |
tree | a1bc60f361ba6a064b36f815dad8c344aec234a2 /setup.cfg | |
parent | 28314faae70ac029d77b3491bcfd4d5f2ba290e2 (diff) | |
download | ironic-773aa20a4ac0364a2219877863017224c7f1089f.tar.gz |
Make use of oslo-config-generator
oslo_config provide a utility for generating sample config files,
which provide more detail about opts, like Minimum/Maximum value
and Allowed values.
So drop Ironic's "generate_sample.sh" which was copied from
oslo-incubator long time ago.
Add a new entry point "ironic" under oslo.config.opts namespace to
explore config options to oslo-config-generator.
After this patch, new config options of Ironic code should register
with ironic/conf/opts.py. New external libraries should
register with tools/config/ironic-config-generator.conf
There is a bug #1554657 with oslo-config about deprecated_group.
This bug have impact of some configs from keystonemiddleware
and oslo.messaging in ironic.conf.sample
So currently, deprecated option should always add the deprecated_group
even it didn't alter the group, otherwise the deprecated group value will
be 'DEFAULT'.
Update etc/ironic/ironic.conf.sample via running 'tox -egenconfig'.
Closes-Bug: #1564195
Change-Id: If7721e98e69b6f54f1ee04a07477396b86583371
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -22,6 +22,9 @@ packages = ironic_tempest_plugin [entry_points] +oslo.config.opts = + ironic = ironic.conf.opts:list_opts + console_scripts = ironic-api = ironic.cmd.api:main ironic-dbsync = ironic.cmd.dbsync:main |