Infra: Install terraform 27/33427/1
authorpmikus <pmikus@cisco.com>
Mon, 9 Aug 2021 13:58:59 +0000 (13:58 +0000)
committerpmikus <pmikus@cisco.com>
Mon, 9 Aug 2021 13:58:59 +0000 (13:58 +0000)
+ Unless docker images gets updated

Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I9d09b24ca7bef71dad5774ae2b5e2e67e7b8f285

resources/libraries/bash/function/terraform.sh

index 567fc78..23da8ae 100644 (file)
@@ -75,7 +75,9 @@ function terraform_init () {
     set -exuo pipefail
 
     if ! installed terraform; then
-        die "Please install terraform!"
+        apt update -y
+        apt install -y terraform
+        #die "Please install terraform!"
     fi
 
     pushd "${CSIT_DIR}"/fdio.infra.terraform || die "Pushd failed!"