Fix Docker Settings on new installs

This commit is contained in:
TOoSmOotH
2020-12-17 15:21:29 -05:00
parent 1f523deaea
commit d99596ad06
3 changed files with 9 additions and 3 deletions

View File

@@ -1199,6 +1199,9 @@ manager_global() {
if [ -z "$DOCKERNET" ]; then
DOCKERNET=172.17.0.0
DOCKERBIP=$(echo $DOCKERNET | awk -F'.' '{print $1,$2,$3,1}' OFS='.')/24
else
DOCKERBIP=$(echo $DOCKERNET | awk -F'.' '{print $1,$2,$3,1}' OFS='.')/24
fi
# Create a global file for global values
@@ -1346,6 +1349,9 @@ manager_global() {
" playbook:"\
" rulesets:"\
" - windows"\
"docker:"\
" range: '$DOCKERNET/24'"\
" bip: '$DOCKERBIP"
"redis_settings:"\
" redis_maxmemory: 812" >> "$global_pillar"