Setup Script - Change Eval memory settings

This commit is contained in:
Mike Reeves
2019-03-15 07:52:27 -04:00
parent 6e29ad90c7
commit 681966a83d
2 changed files with 37 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
# The secret key is used to secure cryptographic functions. # 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. # WARNING: If you deploy your application on several servers, make sure to use the same key.
play.http.secret.key="letsdewdis" play.http.secret.key="letsdewdis"
play.http.context=/thehive/
# Elasticsearch # Elasticsearch
search { search {

View File

@@ -1104,7 +1104,7 @@ whiptail_cancel() {
whiptail_check_exitstatus() { whiptail_check_exitstatus() {
if [ $1 == '1' ]; then if [ $1 == '1' ]; then
echo " They hit cancel" echo "They hit cancel"
whiptail_cancel whiptail_cancel
fi 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() { whiptail_homenet_master() {
# Ask for the HOME_NET on the master # Ask for the HOME_NET on the master
@@ -1702,11 +1726,20 @@ if (whiptail_you_sure); then
# Snag the HOME_NET # Snag the HOME_NET
whiptail_homenet_master 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 # Set a bunch of stuff since this is eval
es_heapsize es_heapsize
ls_heapsize ls_heapsize
NODE_ES_HEAP_SIZE=$ES_HEAP_SIZE NODE_ES_HEAP_SIZE="600m"
NODE_LS_HEAP_SIZE=$LS_HEAP_SIZE NODE_LS_HEAP_SIZE="2000m"
LSPIPELINEWORKERS=1 LSPIPELINEWORKERS=1
LSPIPELINEBATCH=125 LSPIPELINEBATCH=125
LSINPUTTHREADS=1 LSINPUTTHREADS=1