From 252064322c53f819867335b8448fd79e225f68c3 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 22 Mar 2021 20:34:08 +0100 Subject: [PATCH] Fix VAR_FILES --- fabrica | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fabrica b/fabrica index 46d55e2..9acb09d 100755 --- a/fabrica +++ b/fabrica @@ -2,7 +2,7 @@ WORKDIR="./terraform" TERRA="terraform" -VAR_FILE="main.tfvars networks.tfvars dns-zones.tfvars" +VAR_FILES=$(ls ${WORKDIR}/*.tfvars) PACKER_ROOT="./packer" # FIXME @@ -24,7 +24,7 @@ function trun() return 1 fi OPTS="" - for fl in ${VAR_FILE} + for fl in ${VAR_FILES} do OPTS="-var-files ${fl} " done