mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
Update so-setup
This commit is contained in:
@@ -340,6 +340,7 @@ process_installtype
|
|||||||
if ! [[ -f $install_opt_file ]]; then
|
if ! [[ -f $install_opt_file ]]; then
|
||||||
# If you are a manager ask ALL the manager things here. I know there is code re-use but this makes it easier to add new roles
|
# If you are a manager ask ALL the manager things here. I know there is code re-use but this makes it easier to add new roles
|
||||||
if [[ $is_eval ]]; then
|
if [[ $is_eval ]]; then
|
||||||
|
info "Setting up as node type eval"
|
||||||
# waitforstate means we will run the full salt state at the end. This is for only nodes running the salt-master service
|
# waitforstate means we will run the full salt state at the end. This is for only nodes running the salt-master service
|
||||||
waitforstate=true
|
waitforstate=true
|
||||||
# Does this role have monitoring interfaces?
|
# Does this role have monitoring interfaces?
|
||||||
@@ -397,6 +398,7 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
collect_so_allow
|
collect_so_allow
|
||||||
whiptail_end_settings
|
whiptail_end_settings
|
||||||
elif [[ $is_manager ]]; then
|
elif [[ $is_manager ]]; then
|
||||||
|
info "Setting up as node type manager"
|
||||||
check_elastic_license
|
check_elastic_license
|
||||||
waitforstate=true
|
waitforstate=true
|
||||||
#ubuntu_check
|
#ubuntu_check
|
||||||
@@ -417,6 +419,7 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
collect_so_allow
|
collect_so_allow
|
||||||
whiptail_end_settings
|
whiptail_end_settings
|
||||||
elif [[ $is_managersearch ]]; then
|
elif [[ $is_managersearch ]]; then
|
||||||
|
info "Setting up as node type managersearch"
|
||||||
check_elastic_license
|
check_elastic_license
|
||||||
waitforstate=true
|
waitforstate=true
|
||||||
[[ $is_iso ]] && whiptail_airgap
|
[[ $is_iso ]] && whiptail_airgap
|
||||||
@@ -436,6 +439,7 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
collect_so_allow
|
collect_so_allow
|
||||||
whiptail_end_settings
|
whiptail_end_settings
|
||||||
elif [[ $is_sensor ]]; then
|
elif [[ $is_sensor ]]; then
|
||||||
|
info "Setting up as node type sensor"
|
||||||
installer_prereq_packages
|
installer_prereq_packages
|
||||||
monints=true
|
monints=true
|
||||||
check_requirements "sensor"
|
check_requirements "sensor"
|
||||||
@@ -452,6 +456,7 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
whiptail_end_settings
|
whiptail_end_settings
|
||||||
|
|
||||||
elif [[ $is_fleet ]]; then
|
elif [[ $is_fleet ]]; then
|
||||||
|
info "Setting up as node type fleet"
|
||||||
check_requirements "fleet"
|
check_requirements "fleet"
|
||||||
networking_needful
|
networking_needful
|
||||||
check_network_manager_conf
|
check_network_manager_conf
|
||||||
@@ -464,6 +469,7 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
whiptail_end_settings
|
whiptail_end_settings
|
||||||
|
|
||||||
elif [[ $is_searchnode ]]; then
|
elif [[ $is_searchnode ]]; then
|
||||||
|
info "Setting up as node type searchnode"
|
||||||
installer_prereq_packages
|
installer_prereq_packages
|
||||||
check_requirements "elasticsearch"
|
check_requirements "elasticsearch"
|
||||||
networking_needful
|
networking_needful
|
||||||
@@ -477,6 +483,7 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
whiptail_end_settings
|
whiptail_end_settings
|
||||||
|
|
||||||
elif [[ $is_heavynode ]]; then
|
elif [[ $is_heavynode ]]; then
|
||||||
|
info "Setting up as node type heavynode"
|
||||||
installer_prereq_packages
|
installer_prereq_packages
|
||||||
monints=true
|
monints=true
|
||||||
check_requirements "heavynode"
|
check_requirements "heavynode"
|
||||||
@@ -489,6 +496,7 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
whiptail_end_settings
|
whiptail_end_settings
|
||||||
|
|
||||||
elif [[ $is_idh ]]; then
|
elif [[ $is_idh ]]; then
|
||||||
|
info "Setting up as node type idh"
|
||||||
installer_prereq_packages
|
installer_prereq_packages
|
||||||
check_requirements "idh"
|
check_requirements "idh"
|
||||||
networking_needful
|
networking_needful
|
||||||
@@ -500,6 +508,7 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
whiptail_end_settings
|
whiptail_end_settings
|
||||||
|
|
||||||
elif [[ $is_import ]]; then
|
elif [[ $is_import ]]; then
|
||||||
|
info "Setting up as node type import"
|
||||||
waitforstate=true
|
waitforstate=true
|
||||||
[[ $is_iso ]] && whiptail_airgap
|
[[ $is_iso ]] && whiptail_airgap
|
||||||
check_elastic_license
|
check_elastic_license
|
||||||
@@ -520,6 +529,7 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
whiptail_end_settings
|
whiptail_end_settings
|
||||||
|
|
||||||
elif [[ $is_receiver ]]; then
|
elif [[ $is_receiver ]]; then
|
||||||
|
info "Setting up as node type receiver"
|
||||||
installer_prereq_packages
|
installer_prereq_packages
|
||||||
check_requirements "receiver"
|
check_requirements "receiver"
|
||||||
networking_needful
|
networking_needful
|
||||||
|
|||||||
Reference in New Issue
Block a user