Fix terraform and packer versions

This commit is contained in:
Philippe Caseiro 2021-03-23 12:02:36 +01:00
parent e4d4f10181
commit 5a898ac10c
1 changed files with 3 additions and 1 deletions

View File

@ -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
}