autodetect manager IP

This commit is contained in:
Jason Ertel
2023-03-09 12:58:51 -05:00
parent ecc300197d
commit 894a20b3ad

View File

@@ -180,21 +180,24 @@ if [ -n "$test_profile" ]; then
else else
install_type=${install_type^^} install_type=${install_type^^}
fi fi
info "Activating test profile; profile=$test_profile; install_type=$install_type"
# 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
install_type=SENSOR
HOSTNAME=sensor HOSTNAME=sensor
MSRVIP_OFFSET=-2 MSRVIP_OFFSET=-2
elif [[ "$test_profile" =~ "-search" ]]; then elif [[ "$test_profile" =~ "-search" ]]; then
install_type=SEARCH
HOSTNAME=search HOSTNAME=search
MSRVIP_OFFSET=-1 MSRVIP_OFFSET=-1
else else
HOSTNAME=manager HOSTNAME=manager
fi fi
info "Activating test profile; profile=$test_profile; install_type=$install_type"
MSRV=manager MSRV=manager
if [[ "$test_profile" =~ "-net" ]]; then if [[ "$test_profile" =~ "-net" ]]; then
address_type=DHCP address_type=DHCP