diff options
| author | Jason <jasonanderson@uchicago.edu> | 2019-01-10 17:48:15 -0600 |
|---|---|---|
| committer | Michal Nasiadka <mnasiadka@gmail.com> | 2023-01-02 08:52:02 +0100 |
| commit | d079dd67e3b6f3cca560444809e0d6cedad9d9d3 (patch) | |
| tree | 57da9db5f2814e2104c87846223f8c89a7bd36fd /kolla | |
| parent | 8585495f451ca8d1a719e550d63949f4142cf4e6 (diff) | |
| download | kolla-d079dd67e3b6f3cca560444809e0d6cedad9d9d3.tar.gz kolla-d079dd67e3b6f3cca560444809e0d6cedad9d9d3.zip | |
Add locals_base option
This option allows you to define 'locals' style dependencies as relative
to a $locals_base variable, similar to how $tarballs_base works. This
can help you avoid defining the same hard-coded path in kolla-build, and
instead pass it to kolla via a flag.
Similar to $tarballs_base, this works via oslo_config's existing
interpolation functionality[1].
Example usage:
[DEFAULT]
locals_base = /opt/openstack
[neutron-base]
type = local
location = $locals_base/neutron/neutron-stable-rocky.tar.gz
[1]:
https://docs.openstack.org/oslo.config/latest/reference/configuration-files.html#option-value-interpolation
Change-Id: I8670db4dde4dac26df28502637eadc6b854261cf
Diffstat (limited to 'kolla')
| -rw-r--r-- | kolla/common/config.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py index 58a4e18aa..dca9e278c 100644 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -168,6 +168,8 @@ _CLI_OPTS = [ help='Show image dependencies (filtering supported)'), cfg.BoolOpt('list-images', help='Show all available images (filtering supported)'), + cfg.StrOpt('locals-base', default='./', + help='Base directory for local source resolution'), cfg.StrOpt('namespace', short='n', default='kolla', help='The Docker namespace name'), cfg.StrOpt('network_mode', default='host', |
