Browse Source

Start standalone.conf

This is the start of a standalone.conf for use with the all in one
installer.

Change-Id: I656f4c1f7094b9a5981c1f15ff1c119693cd17c8
Related-Blueprint: all-in-one
changes/74/569474/6
Alex Schultz 3 years ago
parent
commit
c0f566cc2e
  1. 3
      .gitignore
  2. 3
      config-generator/standalone.conf
  3. 1
      setup.cfg
  4. 4
      tox.ini
  5. 7
      tripleoclient/config/standalone.py

3
.gitignore

@ -53,3 +53,6 @@ ChangeLog
# Files created by releasenotes build
releasenotes/build
# generated config samples
*.conf.sample

3
config-generator/standalone.conf

@ -0,0 +1,3 @@
[DEFAULT]
output_file = standalone.conf.sample
namespace = standalone_config

1
setup.cfg

@ -100,3 +100,4 @@ openstack.tripleoclient.v1 =
undercloud_backup = tripleoclient.v1.undercloud_backup:BackupUndercloud
oslo.config.opts =
undercloud_config = tripleoclient.v1.undercloud_config:list_opts
standalone_config = tripleoclient.config.standalone:list_opts

4
tox.ini

@ -60,7 +60,9 @@ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,rele
[testenv:genconfig]
setenv =
HOME={env:HOME:/home/stack}
commands = oslo-config-generator --config-file config-generator/undercloud.conf
commands =
oslo-config-generator --config-file config-generator/undercloud.conf
oslo-config-generator --config-file config-generator/standalone.conf
[testenv:releasenotes]
deps =

7
tripleoclient/config/standalone.py

@ -13,6 +13,8 @@
# under the License.
#
import copy
from osc_lib.i18n import _
from oslo_config import cfg
from tripleoclient.config.base import BaseConfig
@ -189,3 +191,8 @@ class StandaloneConfig(BaseConfig):
def get_opts(self):
return self.sort_opts(self.get_base_opts() +
self.get_enable_service_opts())
# this is needed for the oslo config generator
def list_opts():
return [(None, copy.deepcopy(StandaloneConfig().get_opts()))]
Loading…
Cancel
Save