summaryrefslogtreecommitdiff
path: root/ironic/common/paths.py
diff options
context:
space:
mode:
authorLin Tan <lin.tan@intel.com>2015-11-19 14:50:38 +0800
committerLin Tan <lin.tan@intel.com>2016-05-25 11:59:13 +0800
commit773aa20a4ac0364a2219877863017224c7f1089f (patch)
treea1bc60f361ba6a064b36f815dad8c344aec234a2 /ironic/common/paths.py
parent28314faae70ac029d77b3491bcfd4d5f2ba290e2 (diff)
downloadironic-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 'ironic/common/paths.py')
-rw-r--r--ironic/common/paths.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ironic/common/paths.py b/ironic/common/paths.py
index d11c3682f..c35d3f495 100644
--- a/ironic/common/paths.py
+++ b/ironic/common/paths.py
@@ -25,6 +25,7 @@ path_opts = [
cfg.StrOpt('pybasedir',
default=os.path.abspath(os.path.join(os.path.dirname(__file__),
'../')),
+ sample_default='/usr/lib/python/site-packages/ironic/ironic',
help=_('Directory where the ironic python module is '
'installed.')),
cfg.StrOpt('bindir',