Fix terraform and packer versions
This commit is contained in:
parent
e4d4f10181
commit
5a898ac10c
4
fabrica
4
fabrica
|
@ -17,6 +17,8 @@ function needGitPull()
|
||||||
## Install & Uninstall ##
|
## Install & Uninstall ##
|
||||||
function install_hashicorp_tools()
|
function install_hashicorp_tools()
|
||||||
{
|
{
|
||||||
|
packer_version="1.6.6"
|
||||||
|
terraform_version="1.14.3"
|
||||||
if [[ ${DISTRIB_ID} == "ManjaroLinux" ]]
|
if [[ ${DISTRIB_ID} == "ManjaroLinux" ]]
|
||||||
then
|
then
|
||||||
pacman -Syq terraform packer --noconfirm
|
pacman -Syq terraform packer --noconfirm
|
||||||
|
@ -28,7 +30,7 @@ function install_hashicorp_tools()
|
||||||
curl -fsSL ${gpg_key_url} | apt-key add -
|
curl -fsSL ${gpg_key_url} | apt-key add -
|
||||||
apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
|
apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get -y install terraform packer
|
apt-get -y install terraform=${terraform_version} packer=${packer_version}
|
||||||
return ${?}
|
return ${?}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue