Add config file to generate separate middleware config file

Commit 74dac1ca2fe78c82e2cc1c3e8955762002636068 introduced the new
options to load additional config files for ceilometer middleware.

Adds the basic framework to generate an example config file to simplify
packaging work.

Change-Id: Ib2ce6e9e6e83059503dd1b04e70f8c461113524f
This commit is contained in:
Takashi Kajinami 2024-07-09 21:11:54 +09:00
parent e0442522a8
commit e15f9640f7
3 changed files with 10 additions and 0 deletions

3
.gitignore vendored
View File

@ -59,3 +59,6 @@ target/
# Files created by releasenotes build
releasenotes/build
# Files created by oslo-config-generator
etc/swift/ceilometer.conf

View File

@ -0,0 +1,4 @@
[DEFAULT]
output_file = etc/swift/ceilometer.conf
wrap_width = 79
namespace = oslo.messaging

View File

@ -48,3 +48,6 @@ show-source = True
# W503 line break before binary operator
ignore = W503
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:genconfig]
commands = oslo-config-generator --config-file=etc/swift/ceilometer-config-generator.conf