Fix VAR_FILE
This commit is contained in:
parent
252064322c
commit
b0efa1d1d2
4
fabrica
4
fabrica
|
@ -2,7 +2,6 @@
|
|||
|
||||
WORKDIR="./terraform"
|
||||
TERRA="terraform"
|
||||
VAR_FILES=$(ls ${WORKDIR}/*.tfvars)
|
||||
PACKER_ROOT="./packer"
|
||||
|
||||
# FIXME
|
||||
|
@ -23,11 +22,14 @@ function trun()
|
|||
echo "--> Git pull needed !"
|
||||
return 1
|
||||
fi
|
||||
|
||||
VAR_FILES=$(ls *.tfvars)
|
||||
OPTS=""
|
||||
for fl in ${VAR_FILES}
|
||||
do
|
||||
OPTS="-var-files ${fl} "
|
||||
done
|
||||
|
||||
${TERRA} ${1} ${OPTS}
|
||||
res=${?}
|
||||
cd -
|
||||
|
|
Loading…
Reference in New Issue