mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 05:45:06 +03:00
Replace terraform with opentf (#12291)
Terraform is no longer open source software and has been removed and replaced with OpenTofu. Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
This commit is contained in:
8
tests/scripts/opentofu_install.sh
Executable file
8
tests/scripts/opentofu_install.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opentofu.sh -o install-opentofu.sh
|
||||
chmod +x install-opentofu.sh
|
||||
./install-opentofu.sh --install-method standalone
|
||||
rm -f install-opentofu.sh
|
||||
tofu --version
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
apt-get install -y unzip
|
||||
curl https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip > /tmp/terraform.zip
|
||||
unzip /tmp/terraform.zip && mv ./terraform /usr/local/bin/ && terraform --version
|
||||
Reference in New Issue
Block a user