aboutsummaryrefslogtreecommitdiff
path: root/kolla/common
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2017-03-29 11:16:42 +0200
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2017-03-30 13:11:24 +0200
commit658bd38ca58d96af36864052ae123f049cf5c039 (patch)
tree2da8b9c035ea347c88b372aecd47cbb85255835a /kolla/common
parentce716ebe228a29f37fbdfc69aaa34413e6f409a5 (diff)
downloadkolla-658bd38ca58d96af36864052ae123f049cf5c039.tar.gz
kolla-658bd38ca58d96af36864052ae123f049cf5c039.zip
add base_arch variable for future non-x86 work
This variable will allow to select which target architecture has to be used. Partially-Implements: blueprint multiarch-and-arm64-containers Change-Id: I71ddb7ef57c64d2505cac96724b1ab6772a57d6a
Diffstat (limited to 'kolla/common')
-rwxr-xr-xkolla/common/config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py
index 047963498..d9f7fb91b 100755
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -19,6 +19,7 @@ from kolla.version import version_info as version
BASE_OS_DISTRO = ['centos', 'rhel', 'ubuntu', 'oraclelinux', 'debian']
+BASE_ARCH = ['x86_64']
DISTRO_RELEASE = {
'centos': '7',
'rhel': '7',
@@ -154,6 +155,9 @@ _CLI_OPTS = [
help='The base distro image tag'),
cfg.StrOpt('base-image',
help='The base image name. Default is the same with base'),
+ cfg.StrOpt('base-arch', default='x86_64',
+ choices=BASE_ARCH,
+ help='The base architecture.'),
cfg.BoolOpt('debug', short='d', default=False,
help='Turn on debugging log level'),
cfg.DictOpt('build-args',