Breaking the Hive

This commit is contained in:
Mike Reeves
2019-05-07 15:28:11 -04:00
parent 5824e3c11d
commit fcc44cbf74
2 changed files with 10 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ sensorpkgs:
- skip_suggestions: False
- pkgs:
- docker-ce
- wget
{% if grains['os'] != 'CentOS' %}
- python-docker
- python-m2crypto

View File

@@ -33,5 +33,14 @@ hive_init(){
if [ -f /opt/so/state/thehive.txt ]; then
exit 0
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
fi