mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Breaking the Hive
This commit is contained in:
@@ -37,6 +37,7 @@ sensorpkgs:
|
|||||||
- skip_suggestions: False
|
- skip_suggestions: False
|
||||||
- pkgs:
|
- pkgs:
|
||||||
- docker-ce
|
- docker-ce
|
||||||
|
- wget
|
||||||
{% if grains['os'] != 'CentOS' %}
|
{% if grains['os'] != 'CentOS' %}
|
||||||
- python-docker
|
- python-docker
|
||||||
- python-m2crypto
|
- python-m2crypto
|
||||||
|
|||||||
@@ -33,5 +33,14 @@ hive_init(){
|
|||||||
if [ -f /opt/so/state/thehive.txt ]; then
|
if [ -f /opt/so/state/thehive.txt ]; then
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
rm -f garbage_file
|
||||||
|
while ! wget -O garbage_file {{MASTERIP}}:9500 2>/dev/null
|
||||||
|
do
|
||||||
|
echo "Waiting for Elasticsearch..."
|
||||||
|
rm -f garbage_file
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
rm -f garbage_file
|
||||||
|
sleep 5
|
||||||
hive_init
|
hive_init
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user