aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2021-07-27 10:11:21 +0000
committerPeter Mikus <pmikus@cisco.com>2021-07-27 11:27:47 +0000
commit4347061e23bfaa605f1580950d8bd42b2ef3562f (patch)
treeaec5e54222597aa4669112be7745354d177c9aa0
parent71e5485b508f4f37780ae1a276525356a4e3238f (diff)
FIX: Executable bit for ansible plugin
Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I2416a9682710441d098acfff50e943ac3f788500 (cherry picked from commit f7c3f3918646a7bb157e648ed96beb9bb5c232ea)
-rw-r--r--resources/libraries/bash/function/terraform.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/libraries/bash/function/terraform.sh b/resources/libraries/bash/function/terraform.sh
index 29a2177bd6..567fc78f06 100644
--- a/resources/libraries/bash/function/terraform.sh
+++ b/resources/libraries/bash/function/terraform.sh
@@ -80,17 +80,19 @@ function terraform_init () {
pushd "${CSIT_DIR}"/fdio.infra.terraform || die "Pushd failed!"
pushd "${NODENESS}_${FLAVOR}_c5n" || die "Pushd failed!"
- export TF_LOG=INFO
- terraform init || die "Failed to run terraform init!"
plugin_url="https://github.com/radekg/terraform-provisioner-ansible/"
plugin_url+="releases/download/v2.5.0/"
plugin_url+="terraform-provisioner-ansible-linux-amd64_v2.5.0"
plugin_dir="${HOME}/.terraform.d/plugins/"
- plugin_path+="${plugin_dir}terraform-provisioner-ansible-linux-amd64_v2.5.0"
+ plugin_path+="${plugin_dir}terraform-provisioner-ansible_v2.5.0"
mkdir -p "${plugin_dir}" || die "Failed to create dir!"
wget -O "${plugin_path}" "${plugin_url}" || die "Failed to download plugin!"
+ chmod +x "${plugin_path}" || die "Failed to add execute rights!"
+
+ export TF_LOG=INFO
+ terraform init || die "Failed to run terraform init!"
popd || die "Popd failed!"
popd || die "Popd failed!"