From 5a898ac10c2a61e39d100d69646d7744efce2f4d Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Tue, 23 Mar 2021 12:02:36 +0100 Subject: [PATCH] Fix terraform and packer versions --- fabrica | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fabrica b/fabrica index 45d955d..b81298b 100755 --- a/fabrica +++ b/fabrica @@ -17,6 +17,8 @@ function needGitPull() ## Install & Uninstall ## function install_hashicorp_tools() { + packer_version="1.6.6" + terraform_version="1.14.3" if [[ ${DISTRIB_ID} == "ManjaroLinux" ]] then pacman -Syq terraform packer --noconfirm @@ -28,7 +30,7 @@ function install_hashicorp_tools() curl -fsSL ${gpg_key_url} | apt-key add - apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" apt-get update - apt-get -y install terraform packer + apt-get -y install terraform=${terraform_version} packer=${packer_version} return ${?} fi }