summaryrefslogtreecommitdiffstats
path: root/xci/files/xci-lib.sh
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-08-09 16:06:42 +0200
committerManuel Buil <mbuil@suse.com>2018-10-01 13:06:50 +0200
commit6158af2f83842e3d6bdcba8c7ba93b4116b405ae (patch)
tree5c399583fffdeab5db3b67791085125f51ef565f /xci/files/xci-lib.sh
parent3fe75598de97c73c95d83739e6ed11277b619988 (diff)
[Baremetal] Include a baremetal variable
It switches between parts of the code which are specific for baremetal or non-baremetal. Those parts come with this patch: https://gerrit.opnfv.org/gerrit/#/c/60797 It also selects different variables when calling the opnfv-virtual.yml playbook: https://gerrit.opnfv.org/gerrit/#/c/60795 It decides the value of BAREMETAL based on the vendor value of the pdf Change-Id: I8e6171f4f21db7f814a472e6ed1bacb30220b4ec Signed-off-by: Manuel Buil <mbuil@suse.com>
Diffstat (limited to 'xci/files/xci-lib.sh')
-rw-r--r--xci/files/xci-lib.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/xci/files/xci-lib.sh b/xci/files/xci-lib.sh
index 2f360e44..cb0751da 100644
--- a/xci/files/xci-lib.sh
+++ b/xci/files/xci-lib.sh
@@ -52,6 +52,8 @@ function bootstrap_xci_env() {
source "$XCI_PATH/xci/installer/${INSTALLER_TYPE}/env" &>/dev/null || true
# source xci configuration
source $XCI_PATH/xci/config/env-vars
+ # source the baremetal variable
+ grep -o vendor.* ${PDF} | grep -q libvirt && export BAREMETAL=false || export BAREMETAL=true
}
function install_ansible() {