Update fabrica script
This commit is contained in:
parent
babcd09e3d
commit
dd2f195a14
9
fabrica
9
fabrica
|
@ -2,7 +2,7 @@
|
|||
|
||||
WORKDIR="./terraform"
|
||||
TERRA="terraform"
|
||||
VAR_FILE="main.tfvars"
|
||||
VAR_FILE="main.tfvars networks.tfvars dns-zones.tfvars"
|
||||
PACKER_ROOT="./packer"
|
||||
|
||||
# FIXME
|
||||
|
@ -23,7 +23,12 @@ function trun()
|
|||
echo "--> Git pull needed !"
|
||||
return 1
|
||||
fi
|
||||
${TERRA} ${1} -var-file ${VAR_FILE}
|
||||
OPTS=""
|
||||
for fl in ${VAR_FILE}
|
||||
do
|
||||
OPTS="-var-files ${fl} "
|
||||
done
|
||||
${TERRA} ${1} ${OPS}
|
||||
res=${?}
|
||||
cd -
|
||||
|
||||
|
|
Loading…
Reference in New Issue