FIX: Terraform install 28/33428/2
authorpmikus <pmikus@cisco.com>
Mon, 9 Aug 2021 14:26:45 +0000 (14:26 +0000)
committerPeter Mikus <pmikus@cisco.com>
Mon, 9 Aug 2021 14:28:42 +0000 (14:28 +0000)
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I1bc29338bf677c5777474ea07954df4ca0ed0a31

resources/libraries/bash/function/terraform.sh

index 23da8ae..929cdd8 100644 (file)
@@ -75,6 +75,8 @@ function terraform_init () {
     set -exuo pipefail
 
     if ! installed terraform; then
+        repo="deb [arch=amd64] https://apt.releases.hashicorp.com focal main"
+        echo "${repo}" >> "/etc/apt/sources.list" || die "Failed to add repo!"
         apt update -y
         apt install -y terraform
         #die "Please install terraform!"