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
This commit is contained in:
parent
74e7ec7783
commit
c0f566cc2e
3
.gitignore
vendored
3
.gitignore
vendored
@ -53,3 +53,6 @@ ChangeLog
|
||||
|
||||
# Files created by releasenotes build
|
||||
releasenotes/build
|
||||
|
||||
# generated config samples
|
||||
*.conf.sample
|
||||
|
3
config-generator/standalone.conf
Normal file
3
config-generator/standalone.conf
Normal file
@ -0,0 +1,3 @@
|
||||
[DEFAULT]
|
||||
output_file = standalone.conf.sample
|
||||
namespace = standalone_config
|
@ -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
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 =
|
||||
|
@ -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…
Reference in New Issue
Block a user