From dd2f195a1482a5ad739ce65c378dd271b30e1099 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 22 Mar 2021 20:32:08 +0100 Subject: [PATCH] Update fabrica script --- fabrica | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 -