mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
autodetect manager IP
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user