mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 10:12:53 +01:00
Add cluster whiptail questions
This commit is contained in:
@@ -320,6 +320,9 @@ fi
|
|||||||
|
|
||||||
if [[ $is_manager && ! $is_eval ]]; then
|
if [[ $is_manager && ! $is_eval ]]; then
|
||||||
whiptail_manager_adv
|
whiptail_manager_adv
|
||||||
|
if [[ "$install_type" = 'MANAGER' ]] || [[ "$install_type" = 'MANAGERSEARCH' ]
|
||||||
|
whiptail_manager_adv_escluster
|
||||||
|
fi
|
||||||
whiptail_zeek_version
|
whiptail_zeek_version
|
||||||
# Don't run this function for now since Snort is not yet supported
|
# Don't run this function for now since Snort is not yet supported
|
||||||
# whiptail_nids
|
# whiptail_nids
|
||||||
|
|||||||
@@ -631,7 +631,19 @@ whiptail_manager_adv_escluster(){
|
|||||||
MGRCLUSTER=$(whiptail --title "Security Onion Setup" --yesno "Do you want to set up a traditional ES cluster?" 8 75)
|
MGRCLUSTER=$(whiptail --title "Security Onion Setup" --yesno "Do you want to set up a traditional ES cluster?" 8 75)
|
||||||
|
|
||||||
local exitstatus=$?
|
local exitstatus=$?
|
||||||
whiptail_check_exitstatus $exitstatus
|
|
||||||
|
if [[ $exitstatus == 0 ]]; then
|
||||||
|
whiptail_manager_adv_escluster_name
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Get a cluster name
|
||||||
|
whiptail_manager_adv_escluster_name(){
|
||||||
|
|
||||||
|
[ -n "$TESTING" ] && return
|
||||||
|
|
||||||
|
ESCLUSTERNAME=$(whiptail --title "Security Onion Setup" --inputbox \
|
||||||
|
"Enter a name for your ES cluster!" 10 75 securityonion 3>&1 1>&2 2>&3)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Ask which additional components to install
|
# Ask which additional components to install
|
||||||
|
|||||||
Reference in New Issue
Block a user