f4275c508a
An upcoming change[1] in oslo's update.py adds new warnings for style issues in the config. To compensate this commit: - orders the modules alphabetically - uses the script directive for scripts Sync with oslo-incubator caed79d This syncs Keystone with oslo-incubator commit hash caed79d8239679cb74476bb0d9e5011b4fcc39da. In keystone: $ rm -r keystone/openstack/common In oslo-incubator: $ python update.py ../keystone Commits ------- 1173e46 Remove ValueError when accessing sys.modules 17c4e21 Fix docstring indentation in systemd 90ae24b Remove redundant default=None for config options 6c7407b fileutils: port to Python 3 18f2bc1 Enforce unicode json output for jsonutils.load[s]() af36c2a Fix logging setup for Python 3.4 5ae792b Document config generator variables ea9ead8 Allow file exclusion in config generator cdcc19c Mask passwords that are included in commands 9e5a393 jsonutils.load() accepts file pointer, not string a6b2aec On Python <= 2.6, use simplejson if available fe3389e Improve help strings 8a0f567 Remove str() from LOG.* and exceptions f3f14c9 Fixed several typos 0f495ee Emit a log statement when releasing internal lock 9912e5d Add API for creating translation functions 1. https://review.openstack.org/76901 Change-Id: I89de9ae9e3c574095967a2a67e842a90b5527ffa |
||
---|---|---|
.. | ||
check_uptodate.sh | ||
generate_sample.sh | ||
oslo.config.generator.rc | ||
README |
This generate_sample.sh tool is used to generate sample config files from OpenStack project source trees. Run it by passing the base directory and package name i.e. $> generate_sample.sh --base-dir /opt/stack/nova --package-name nova \ --output-dir /opt/stack/nova/etc $> generate_sample.sh -b /opt/stack/neutron -p nova -o /opt/stack/neutron/etc Optionally, include libraries that register entry points for option discovery, such as oslo.messaging: $> generate_sample.sh -b /opt/stack/ceilometer -p ceilometer \ -o /opt/stack/ceilometer/etc -l oslo.messaging Watch out for warnings about modules like libvirt, qpid and zmq not being found - these warnings are significant because they result in options not appearing in the generated config file. This check_uptodate.sh tool is used to ensure that the generated sample config file in the OpenStack project source tree is continually kept up to date with the code itself. This can be done by adding a hook to tox.ini. For example, if a project already had flake8 enabled in a section like this: [testenv.pep8] commands = flake8 {posargs} This section would be changed to: [testenv.pep8] commands = flake8 {posargs} {toxinidir}/tools/config/check_uptodate.sh