diff --git a/fabrica b/fabrica index 71c0458..29b52a9 100755 --- a/fabrica +++ b/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 -