From 7c1b5d79982c15673e1b7b0ad6d7eeee35bb8e90 Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Wed, 12 Jan 2022 16:03:20 +0000 Subject: [PATCH] Add ENABLE_BOOTSTRAP_STATIC_IP option This configures static IP for the bootstrap external NIC Requires https://github.com/openshift/installer/pull/5787 --- common.sh | 4 ++++ config_example.sh | 5 +++++ ocp_install_env.sh | 13 +++++++++++++ 3 files changed, 22 insertions(+) diff --git a/common.sh b/common.sh index fc8b641bf..2258993c9 100644 --- a/common.sh +++ b/common.sh @@ -375,3 +375,7 @@ fi # Defaults the variable to enable testing a custom machine-api-operator image export TEST_CUSTOM_MAO=${TEST_CUSTOM_MAO:-false} + +# Set to configure bootstrap VM baremetal network with static IP +# (Currently this just expects a non-empty value, the IP is fixed to .9) +export ENABLE_BOOTSTRAP_STATIC_IP=${ENABLE_BOOTSTRAP_STATIC_IP:-} diff --git a/config_example.sh b/config_example.sh index a11632ff1..6cdab827e 100755 --- a/config_example.sh +++ b/config_example.sh @@ -342,6 +342,11 @@ set -x #export EXTERNAL_SUBNET_V4="11.0.0.0/24" #export EXTERNAL_SUBNET_V6="fd2e:6f44:5dd8:c956::/120" +# ENABLE_BOOTSTRAP_STATIC_IP - +# Configure a static IP for the bootstrap VM external NIC +# (Currently this just expects a non-empty value, the IP is fixed to .9) +# export ENABLE_BOOTSTRAP_STATIC_IP=true + ################################################################################ ## VM Settings ## diff --git a/ocp_install_env.sh b/ocp_install_env.sh index 4f5c8a6e0..f442e0106 100644 --- a/ocp_install_env.sh +++ b/ocp_install_env.sh @@ -96,6 +96,19 @@ cat <