From 681966a83d0750ef80f5d2fd12e19764013e5d6a Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Fri, 15 Mar 2019 07:52:27 -0400 Subject: [PATCH] Setup Script - Change Eval memory settings --- salt/hive/thehive/etc/application.conf | 1 + so-setup-network.sh | 39 ++++++++++++++++++++++++-- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/salt/hive/thehive/etc/application.conf b/salt/hive/thehive/etc/application.conf index 5a0a96b9b..1fd4b4816 100644 --- a/salt/hive/thehive/etc/application.conf +++ b/salt/hive/thehive/etc/application.conf @@ -4,6 +4,7 @@ # The secret key is used to secure cryptographic functions. # WARNING: If you deploy your application on several servers, make sure to use the same key. play.http.secret.key="letsdewdis" +play.http.context=/thehive/ # Elasticsearch search { diff --git a/so-setup-network.sh b/so-setup-network.sh index 826e0e650..9d9d3618b 100644 --- a/so-setup-network.sh +++ b/so-setup-network.sh @@ -1104,7 +1104,7 @@ whiptail_cancel() { whiptail_check_exitstatus() { if [ $1 == '1' ]; then - echo " They hit cancel" + echo "They hit cancel" whiptail_cancel fi @@ -1120,6 +1120,30 @@ whiptail_cur_close_days() { } +whiptail_eval_adv() { + MASTERADV=$(whiptail --title "Security Onion Setup" --radiolist \ + "Choose your eval install:" 20 78 4 \ + "BASIC" "Install basic components for evaluation" ON \ + "ADVANCED" "Choose additional components to be installed" OFF 3>&1 1>&2 2>&3 ) +} + +whiptail_eval_adv_service_grafana() { + echo "blah" +} + +whiptail_eval_adv_service_osquery() { + echo "blah" + +} + +whiptail_eval_adv_service_wazuh() { + echo "blah" +} + +whiptail_eval_adv_warning() { + whiptail --title "Security Onion Setup" --msgbox "Please keep in mind the more services that you enable the more RAM that is required." 8 78 +} + whiptail_homenet_master() { # Ask for the HOME_NET on the master @@ -1702,11 +1726,20 @@ if (whiptail_you_sure); then # Snag the HOME_NET whiptail_homenet_master + # Ask about advanced mode + whiptail_eval_adv + if [ MASTERADV == 'ADVANCED' ]; then + whiptail_eval_adv_warning + whiptail_eval_adv_service_grafana + whiptail_eval_adv_service_osquery + whiptail_eval_adv_service_wazuh + fi + # Set a bunch of stuff since this is eval es_heapsize ls_heapsize - NODE_ES_HEAP_SIZE=$ES_HEAP_SIZE - NODE_LS_HEAP_SIZE=$LS_HEAP_SIZE + NODE_ES_HEAP_SIZE="600m" + NODE_LS_HEAP_SIZE="2000m" LSPIPELINEWORKERS=1 LSPIPELINEBATCH=125 LSINPUTTHREADS=1