Upgrade to GA including Docker Cleanup

This commit is contained in:
Mike Reeves
2020-09-21 13:14:06 -04:00
parent ffdf7e1db4
commit d56a9e1f86
3 changed files with 69 additions and 2 deletions

View File

@@ -124,6 +124,8 @@ pillar_changes() {
[[ "$INSTALLEDVERSION" =~ rc.1 ]] && rc1_to_rc2
[[ "$INSTALLEDVERSION" =~ rc.2 ]] && rc2_to_rc3
[[ "$INSTALLEDVERSION" =~ rc.3 ]] && rc3_to_2.3.0
}
@@ -184,8 +186,14 @@ rc2_to_rc3() {
# Enable Strelka Rules
sed -i "/ rules:/c\ rules: 1" /opt/so/saltstack/local/pillar/global.sls
INSTALLEDVERSION=rc.3
}
rc3_to_2.3.0() [
echo ""
]
space_check() {
# Check to see if there is enough space
CURRENTSPACE=$(df -BG / | grep -v Avail | awk '{print $4}' | sed 's/.$//')
@@ -263,7 +271,7 @@ update_dockers() {
"so-telegraf" \
"so-zeek" )
fi
# Download the containers from the interwebs
for i in "${TRUSTED_CONTAINERS[@]}"
do
@@ -275,6 +283,9 @@ update_dockers() {
docker push $HOSTNAME:5000/$IMAGEREPO/$i:$NEWVERSION
done
# Cleanup on Aisle 4
clean_dockers
}
update_version() {