autodetect manager IP

This commit is contained in:
Jason Ertel
2023-03-09 11:47:35 -05:00
parent b6ce9f489a
commit a4409b2979

View File

@@ -181,10 +181,10 @@ if [ -n "$test_profile" ]; then
# The below settings are hardcoded purely for automated testing purposes. # The below settings are hardcoded purely for automated testing purposes.
TESTING=true TESTING=true
if [[ "$test_profile" =~ "-sensor-" ]]; then if [[ "$test_profile" =~ "-sensor" ]]; then
HOSTNAME=sensor HOSTNAME=sensor
MSRVIP_OFFSET=-2 MSRVIP_OFFSET=-2
elif [[ "$test_profile" =~ "-search-" ]]; then elif [[ "$test_profile" =~ "-search" ]]; then
HOSTNAME=search HOSTNAME=search
MSRVIP_OFFSET=-1 MSRVIP_OFFSET=-1
else else
@@ -196,7 +196,6 @@ if [ -n "$test_profile" ]; then
address_type=DHCP address_type=DHCP
elif [[ "$test_profile" =~ "-cloud" ]]; then elif [[ "$test_profile" =~ "-cloud" ]]; then
MSRVIP=10.99.1.20 MSRVIP=10.99.1.20
elif [[ "$test_profile" =~ "-iso" ]]; then
elif [[ "$test_profile" =~ "-airgap" ]]; then elif [[ "$test_profile" =~ "-airgap" ]]; then
is_airgap=true is_airgap=true
fi fi