summaryrefslogtreecommitdiffstats
path: root/xci/config/user-vars
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-12-28 12:00:08 +0000
committerMarkos Chandras <mchandras@suse.de>2018-01-03 09:53:02 +0000
commitd3116e3182ebae9d40544060a0318cbc382e388c (patch)
tree883283e0f3f6222130d5ae16b0b90aa739d69769 /xci/config/user-vars
parenta9e1c486d93630a7f1f19ec79b968ba5404bde0e (diff)
xci: Decouple VM distribution from host OS
Introduce a new XCI_DISTRO variable to select the distribution to deploy on the VMs in order to make deployments more flexible and decouple the VM OS selection from the host one. The default value for this new variable is to match the host OS but users can always set it to one of the supported distributions. We can now simply execute the install-ansible.sh script instead of sourcing it in order to keep the environment as clean as possible. Change-Id: Ia74eb0422f983848cde0fb7b220ea1035dfa78bc Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/config/user-vars')
-rwxr-xr-xxci/config/user-vars1
1 files changed, 1 insertions, 0 deletions
diff --git a/xci/config/user-vars b/xci/config/user-vars
index 2d1743a2..da3528f4 100755
--- a/xci/config/user-vars
+++ b/xci/config/user-vars
@@ -21,6 +21,7 @@
# export XCI_FLAVOR="ha"
#-------------------------------------------------------------------------------
export XCI_FLAVOR=${XCI_FLAVOR:-aio}
+export XCI_DISTRO=${XCI_DISTRO:-$(source /etc/os-release &>/dev/null || source /usr/lib/os-release &>/dev/null; echo ${ID,,})}
export XCI_CEPH_ENABLED=${XCI_CEPH_ENABLED:-false}
export XCI_NFVI=${XCI_NFVI:-osa}