summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xci/files/xci-lib.sh2
-rw-r--r--xci/var/opnfv.yml3
2 files changed, 5 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() {
diff --git a/xci/var/opnfv.yml b/xci/var/opnfv.yml
index e7e3b76c..b24a6d98 100644
--- a/xci/var/opnfv.yml
+++ b/xci/var/opnfv.yml
@@ -49,3 +49,6 @@ run_tempest: "{{ lookup('env', 'RUN_TEMPEST') }}"
core_openstack_install: "{{ lookup('env', 'CORE_OPENSTACK_INSTALL') }}"
deploy_scenario: "{{ lookup('env','DEPLOY_SCENARIO') }}"
installer_type: "{{ lookup('env','INSTALLER_TYPE') }}"
+
+# baremetal variables
+baremetal: "{{ lookup('env','BAREMETAL') }}"