mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Setup Script - Added progress bars for sensor install
This commit is contained in:
@@ -1737,23 +1737,46 @@ if (whiptail_you_sure); then
|
|||||||
get_filesystem_root
|
get_filesystem_root
|
||||||
get_filesystem_nsm
|
get_filesystem_nsm
|
||||||
copy_ssh_key
|
copy_ssh_key
|
||||||
set_initial_firewall_policy
|
{
|
||||||
create_bond
|
sleep 0.5
|
||||||
sensor_pillar
|
echo -e "XXX\n0\nSetting Initial Firewall Policy... \nXXX"
|
||||||
saltify
|
set_initial_firewall_policy >>~/sosetup.log 2>&1
|
||||||
docker_install
|
echo -e "XXX\n3\nCreating Bond Interface... \nXXX"
|
||||||
configure_minion sensor
|
create_bond >>~/sosetup.log 2>&1
|
||||||
copy_minion_pillar sensors
|
echo -e "XXX\n4\nGenerating Sensor Pillar... \nXXX"
|
||||||
salt_firstcheckin
|
sensor_pillar >>~/sosetup.log 2>&1
|
||||||
|
echo -e "XXX\n5\nInstalling Salt Components... \nXXX"
|
||||||
|
saltify >>~/sosetup.log 2>&1
|
||||||
|
echo -e "XXX\n20\nInstalling Docker... \nXXX"
|
||||||
|
docker_install >>~/sosetup.log 2>&1
|
||||||
|
echo -e "XXX\n22\nConfiguring Salt Minion... \nXXX"
|
||||||
|
configure_minion sensor >>~/sosetup.log 2>&1
|
||||||
|
echo -e "XXX\n24\nCopying Sensor Pillar to Master... \nXXX"
|
||||||
|
copy_minion_pillar sensors >>~/sosetup.log 2>&1
|
||||||
|
echo -e "XXX\n25\nSending Salt Key to Master... \nXXX"
|
||||||
|
salt_firstcheckin >>~/sosetup.log 2>&1
|
||||||
|
echo -e "XXX\n26\nTelling the Master to Accept Key... \nXXX"
|
||||||
# Accept the Salt Key
|
# Accept the Salt Key
|
||||||
accept_salt_key_remote
|
accept_salt_key_remote >>~/sosetup.log 2>&1
|
||||||
# Do the big checkin but first let them know it will take a bit.
|
echo -e "XXX\n27\nApplying SSL Certificates... \nXXX"
|
||||||
salt_checkin_message
|
salt-call state.apply ca >>~/sosetup.log 2>&1
|
||||||
salt_checkin
|
salt-call state.apply ssl >>~/sosetup.log 2>&1
|
||||||
checkin_at_boot
|
echo -e "XXX\n35\nInstalling Core Components... \nXXX"
|
||||||
|
salt-call state.apply common >>~/sosetup.log 2>&1
|
||||||
|
salt-call state.apply firewall >>~/sosetup.log 2>&1
|
||||||
|
echo -e "XXX\n50\nInstalling PCAP... \nXXX"
|
||||||
|
salt-call state.apply pcap >>~/sosetup.log 2>&1
|
||||||
|
echo -e "XXX\n60\nInstalling IDS components... \nXXX"
|
||||||
|
salt-call state.apply suricata >>~/sosetup.log 2>&1
|
||||||
|
echo -e "XXX\n80\nVerifying Install... \nXXX"
|
||||||
|
salt-call state.highstate >>~/sosetup.log 2>&1
|
||||||
|
} |whiptail --title "Hybrid Hunter Install" --gauge "Please wait while installing" 6 60 0
|
||||||
|
GOODSETUP=$(tail -10 /root/sosetup.log | grep Failed | awk '{ print $2}')
|
||||||
|
if [[ $GOODSETUP == '0' ]]; then
|
||||||
whiptail_setup_complete
|
whiptail_setup_complete
|
||||||
|
else
|
||||||
|
whiptail_setup_failed
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
|
|||||||
Reference in New Issue
Block a user