From d5f41b35ba5b7b34383c34b2ab80839c6b85bac2 Mon Sep 17 00:00:00 2001 From: Joseph Callen Date: Tue, 17 Sep 2019 20:42:18 -0400 Subject: [PATCH] cluster-launch-installer-upi-e2e: vsphere upi: Add bootstrap gather - Gathers the bootstrap and control plane ip address to set GATHER_BOOTSTRAP_ARGS --- .../installer/cluster-launch-installer-upi-e2e.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-upi-e2e.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-upi-e2e.yaml index 2af07ce8fbc36..bc88fc6463d01 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-upi-e2e.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-upi-e2e.yaml @@ -717,6 +717,17 @@ objects: terraform apply -auto-approve -no-color & wait "$!" + # find bootstrap ip + + BOOTSTRAP_IP=$(terraform state show 'module.bootstrap.external.ip_address' | grep ip_address | awk '{print $3}') + + GATHER_BOOTSTRAP_ARGS="${GATHER_BOOTSTRAP_ARGS} --bootstrap ${BOOTSTRAP_IP}" + + CONTROL_PLANE_0_IP=$(terraform state show 'module.control_plane.external.ip_address[0]' | grep ip_address | awk '{print $3}') + CONTROL_PLANE_1_IP=$(terraform state show 'module.control_plane.external.ip_address[1]' | grep ip_address | awk '{print $3}') + CONTROL_PLANE_2_IP=$(terraform state show 'module.control_plane.external.ip_address[2]' | grep ip_address | awk '{print $3}') + + GATHER_BOOTSTRAP_ARGS="${GATHER_BOOTSTRAP_ARGS} --master ${CONTROL_PLANE_0_IP} --master ${CONTROL_PLANE_1_IP} --master ${CONTROL_PLANE_2_IP}" fi echo "Waiting for bootstrap to complete"