Update fabrica script

This commit is contained in:
Philippe Caseiro 2021-03-22 20:32:08 +01:00
parent babcd09e3d
commit dd2f195a14
1 changed files with 7 additions and 2 deletions

View File

@ -2,7 +2,7 @@
WORKDIR="./terraform" WORKDIR="./terraform"
TERRA="terraform" TERRA="terraform"
VAR_FILE="main.tfvars" VAR_FILE="main.tfvars networks.tfvars dns-zones.tfvars"
PACKER_ROOT="./packer" PACKER_ROOT="./packer"
# FIXME # FIXME
@ -23,7 +23,12 @@ function trun()
echo "--> Git pull needed !" echo "--> Git pull needed !"
return 1 return 1
fi fi
${TERRA} ${1} -var-file ${VAR_FILE} OPTS=""
for fl in ${VAR_FILE}
do
OPTS="-var-files ${fl} "
done
${TERRA} ${1} ${OPS}
res=${?} res=${?}
cd - cd -