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