summaryrefslogtreecommitdiffstats
path: root/xci/infra/bifrost/scripts/bifrost-env.sh
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-08-09 16:29:24 +0200
committerManuel Buil <mbuil@suse.com>2018-10-15 15:57:24 +0000
commiteab5448287464ca3900a3e7495e27ac1a2cf1dc9 (patch)
tree64fce36a934d40c1aa6d12770f95ff6cd7a39e00 /xci/infra/bifrost/scripts/bifrost-env.sh
parent4597bb3c4ff273a68d73883a9d87520517d60876 (diff)
[Baremetal] Modify interaction with bifrost roles
Change some of the variables when calling opnfv-virtual.yml and baremetal=true: 1 - We want to configure DHCP mapping between ip and mac when doing baremetal. The create-nodes role will generate a file with that mapping for us (baremetalstaticips) 2 - Don't download the standard IPA image but build one with Fedora (only one that works in ericsson-pod2) when doing baremetal 3 - Wait for the blade to complete its booting. Its ssh port becomes available with the IPA provision but that is not the final state. We need to wait until the required distro gets installed. When not doing baremetal, this is fine as the VMs boot very fast with the chosen distro but for baremetal it takes a while (ericsson-pod2 servers take around 2 minutes to finish all BIOS booting). The playbook wait-for-baremetal.yml does this. Change-Id: I5536517209ff7f46ec034554d29566707778e397 Signed-off-by: Manuel Buil <mbuil@suse.com>
Diffstat (limited to 'xci/infra/bifrost/scripts/bifrost-env.sh')
-rwxr-xr-xxci/infra/bifrost/scripts/bifrost-env.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/xci/infra/bifrost/scripts/bifrost-env.sh b/xci/infra/bifrost/scripts/bifrost-env.sh
index 72d1dafe..7d882125 100755
--- a/xci/infra/bifrost/scripts/bifrost-env.sh
+++ b/xci/infra/bifrost/scripts/bifrost-env.sh
@@ -30,4 +30,14 @@ esac
export BIFROST_INVENTORY_SOURCE=/tmp/baremetal.json
+if [ "${BAREMETAL}" = true ]; then
+ export BIFROST_INVENTORY_DHCP=true
+ export BIFROST_DOWNLOAD_IPA=false
+ export BIFROST_CREATE_IPA=true
+else
+ export BIFROST_INVENTORY_DHCP=false
+ export BIFROST_DOWNLOAD_IPA=true
+ export BIFROST_CREATE_IPA=false
+fi
+
pip install -q --upgrade -r "${XCI_CACHE}/repos/bifrost/requirements.txt"