Setup Script - Update Eval

This commit is contained in:
Mike Reeves
2019-04-17 11:11:23 -04:00
parent 3ba399e065
commit 734887c294
2 changed files with 25 additions and 27 deletions

View File

@@ -47,6 +47,9 @@ base:
- utility - utility
- schedule - schedule
- soctopus - soctopus
{%- if THEHIVE != 0 %}
- hive
{%- endif %}
'G@role:so-master': 'G@role:so-master':
@@ -57,17 +60,27 @@ base:
- master - master
- idstools - idstools
- redis - redis
{%- if OSQUERY != 0 %}
- mysql - mysql
{%- endif %}
- elasticsearch - elasticsearch
- logstash - logstash
- kibana - kibana
- elastalert - elastalert
{%- if WAZUH != 0 %}
- wazuh - wazuh
{%- endif %}
- filebeat - filebeat
- utility - utility
- schedule - schedule
{%- if OSQUERY != 0 %}
- fleet - fleet
{%- endif %}
- soctopus - soctopus
{%- if THEHIVE != 0 %}
- hive
{%- endif %}
# Storage node logic # Storage node logic

View File

@@ -1152,10 +1152,10 @@ whiptail_cur_close_days() {
whiptail_enable_components() { whiptail_enable_components() {
COMPONENTS=$(whiptail --title "Security Onion Setup" --checklist \ COMPONENTS=$(whiptail --title "Security Onion Setup" --checklist \
"Select Components to install" 20 78 8 \ "Select Components to install" 20 78 8 \
"GRAFANA" "Enable Grafana for system monitoring" OFF \ "GRAFANA" "Enable Grafana for system monitoring" ON \
"OSQUERY" "Enable Fleet with osquery" OFF \ "OSQUERY" "Enable Fleet with osquery" ON \
"WAZUH" "Enable Wazuh" OFF \ "WAZUH" "Enable Wazuh" ON \
"THEHIVE" "Enable TheHive" OFF 3>&1 1>&2 2>&3 ) "THEHIVE" "Enable TheHive" ON 3>&1 1>&2 2>&3 )
} }
whiptail_eval_adv() { whiptail_eval_adv() {
@@ -1361,23 +1361,6 @@ whiptail_master_adv_service_brologs() {
"x509" "x.509 Logs" ON 3>&1 1>&2 2>&3 ) "x509" "x.509 Logs" ON 3>&1 1>&2 2>&3 )
} }
whiptail_master_adv_service_grafana() {
echo "blah"
}
whiptail_master_adv_service_osquery() {
#MOSQ=$()
echo "blah"
}
whiptail_master_adv_service_wazuh() {
echo "blah"
}
whiptail_network_notice() { whiptail_network_notice() {
whiptail --title "Security Onion Setup" --yesno "Since this is a network install we assume the management interface, DNS, Hostname, etc are already set up. Hit YES to continue." 8 78 whiptail --title "Security Onion Setup" --yesno "Since this is a network install we assume the management interface, DNS, Hostname, etc are already set up. Hit YES to continue." 8 78
@@ -1622,6 +1605,8 @@ if (whiptail_you_sure); then
# Find out how to handle updates # Find out how to handle updates
whiptail_master_updates whiptail_master_updates
whiptail_enable_components
process_components
# Do Advacned Setup if they chose it # Do Advacned Setup if they chose it
if [ $MASTERADV == 'ADVANCED' ]; then if [ $MASTERADV == 'ADVANCED' ]; then
@@ -1629,9 +1614,6 @@ if (whiptail_you_sure); then
if [ $BROVERSION != 'SURICATA' ]; then if [ $BROVERSION != 'SURICATA' ]; then
whiptail_master_adv_service_brologs whiptail_master_adv_service_brologs
fi fi
whiptail_master_adv_service_osquery
whiptail_master_adv_service_grafana
whiptail_master_adv_service_wazuh
fi fi
# Last Chance to back out # Last Chance to back out
@@ -1852,7 +1834,7 @@ if (whiptail_you_sure); then
echo -e "XXX\n25\nInstalling master components... \nXXX" echo -e "XXX\n25\nInstalling master components... \nXXX"
salt-call state.apply master >>~/sosetup.log 2>&1 salt-call state.apply master >>~/sosetup.log 2>&1
salt-call state.apply idstools >>~/sosetup.log 2>&1 salt-call state.apply idstools >>~/sosetup.log 2>&1
if [[ $EVALOSQUERY == '0' ]]; then if [[ $OSQUERY == '1' ]]; then
salt-call state.apply mysql >>~/sosetup.log 2>&1 salt-call state.apply mysql >>~/sosetup.log 2>&1
fi fi
echo -e "XXX\n35\nInstalling ElasticSearch... \nXXX" echo -e "XXX\n35\nInstalling ElasticSearch... \nXXX"
@@ -1871,12 +1853,12 @@ if (whiptail_you_sure); then
salt-call state.apply curator >>~/sosetup.log 2>&1 salt-call state.apply curator >>~/sosetup.log 2>&1
echo -e "XXX\n58\nInstalling elastalert... \nXXX" echo -e "XXX\n58\nInstalling elastalert... \nXXX"
salt-call state.apply elastalert >>~/sosetup.log 2>&1 salt-call state.apply elastalert >>~/sosetup.log 2>&1
if [[ $EVALOSQUERY == '0' ]]; then if [[ $OSQUERY == '1' ]]; then
echo -e "XXX\n60\nInstalling fleet... \nXXX" echo -e "XXX\n60\nInstalling fleet... \nXXX"
salt-call state.apply fleet >>~/sosetup.log 2>&1 salt-call state.apply fleet >>~/sosetup.log 2>&1
salt-call state.apply redis >>~/sosetup.log 2>&1 salt-call state.apply redis >>~/sosetup.log 2>&1
fi fi
if [[ $EVALWAZUH == '0' ]]; then if [[ $WAZUH == '1' ]]; then
echo -e "XXX\n65\nInstalling Wazuh components... \nXXX" echo -e "XXX\n65\nInstalling Wazuh components... \nXXX"
salt-call state.apply wazuh >>~/sosetup.log 2>&1 salt-call state.apply wazuh >>~/sosetup.log 2>&1
fi fi
@@ -1886,6 +1868,9 @@ if (whiptail_you_sure); then
echo -e "XXX\n95\nInstalling misc components... \nXXX" echo -e "XXX\n95\nInstalling misc components... \nXXX"
salt-call state.apply schedule >>~/sosetup.log 2>&1 salt-call state.apply schedule >>~/sosetup.log 2>&1
salt-call state.apply soctopus >>~/sosetup.log 2>&1 salt-call state.apply soctopus >>~/sosetup.log 2>&1
if [[ $WAZUH == '1' ]]; then
salt-call state.apply hive >>~/sosetup.log 2>&1
fi
echo -e "XXX\n98\nSetting checkin to run on boot... \nXXX" echo -e "XXX\n98\nSetting checkin to run on boot... \nXXX"
checkin_at_boot >>~/sosetup.log 2>&1 checkin_at_boot >>~/sosetup.log 2>&1
echo -e "XXX\n99\nVerifying Setup... \nXXX" echo -e "XXX\n99\nVerifying Setup... \nXXX"