mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 10:42:54 +01:00
autodetect manager IP
This commit is contained in:
@@ -183,8 +183,10 @@ if [ -n "$test_profile" ]; then
|
||||
|
||||
if [[ "$test_profile" =~ "-sensor-" ]]; then
|
||||
HOSTNAME=sensor
|
||||
MSRVIP_OFFSET=-2
|
||||
elif [[ "$test_profile" =~ "-search-" ]]; then
|
||||
HOSTNAME=search
|
||||
MSRVIP_OFFSET=-1
|
||||
else
|
||||
HOSTNAME=manager
|
||||
fi
|
||||
@@ -192,14 +194,11 @@ if [ -n "$test_profile" ]; then
|
||||
MSRV=manager
|
||||
if [[ "$test_profile" =~ "-net" ]]; then
|
||||
address_type=DHCP
|
||||
MSRVIP=10.66.166.72
|
||||
elif [[ "$test_profile" =~ "-cloud" ]]; then
|
||||
MSRVIP=10.99.1.20
|
||||
elif [[ "$test_profile" =~ "-iso" ]]; then
|
||||
MSRVIP=10.66.166.42
|
||||
elif [[ "$test_profile" =~ "-airgap" ]]; then
|
||||
is_airgap=true
|
||||
MSRVIP=10.66.166.52
|
||||
fi
|
||||
|
||||
if [ -f "/root/public_ip" ]; then
|
||||
|
||||
Reference in New Issue
Block a user