Helix fix dockers

This commit is contained in:
Mike Reeves
2020-02-05 11:27:19 -05:00
parent 997b50f12b
commit b69dfd9b25
3 changed files with 51 additions and 34 deletions

View File

@@ -15,6 +15,7 @@ base:
'G@role:so-helix':
- ca
- ssl
- registry
- common
- firewall
- idstools

View File

@@ -453,9 +453,9 @@ docker_registry() {
echo "Docker Registry Setup - Complete" >> $SETUPLOG 2>&1
}
docker_seed_registry() {
VERSION="HH1.1.4"
if [ $INSTALLTYPE != 'HELIXSENSOR' ]; then
TRUSTED_CONTAINERS=( \
"so-acng:$VERSION" \
"so-auth-api:$VERSION" \
@@ -489,6 +489,19 @@ docker_seed_registry() {
"so-thehive-es:$VERSION" \
"so-wazuh:$VERSION" \
"so-zeek:$VERSION" )
else
TRUSTED_CONTAINERS=( \
"so-core:$VERSION" \
"so-filebeat:$VERSION" \
"so-idstools:$VERSION" \
"so-logstash:$VERSION" \
"so-redis:$VERSION" \
"so-sensoroni:$VERSION" \
"so-steno:$VERSION" \
"so-suricata:$VERSION" \
"so-telegraf:$VERSION" \
"so-zeek:$VERSION" )
fi
if [ ! -f /nsm/docker-registry/docker/so-dockers-$VERSION.tar ]; then
# Download the container from the interwebs

View File

@@ -213,6 +213,9 @@ if (whiptail_you_sure) ; then
salt_checkin >> $SETUPLOG 2>&1
salt-call state.apply ca >> $SETUPLOG 2>&1
salt-call state.apply ssl >> $SETUPLOG 2>&1
echo -e "XXX\n42\nDownloading Containers from the Internet... \nXXX"
salt-call state.apply registry >> $SETUPLOG 2>&1
docker_seed_registry >> $SETUPLOG 2>&1
echo -e "XXX\n43\nInstalling Common Components... \nXXX"
salt-call state.apply common >> $SETUPLOG 2>&1
echo -e "XXX\n45\nApplying firewall rules... \nXXX"