From 1d3d4d6b8e82c451acbff0208391f9fef7f08227 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 16 Jul 2024 00:11:17 +0300 Subject: [PATCH 1/3] Update install.go --- provisioner/terraform/install.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provisioner/terraform/install.go b/provisioner/terraform/install.go index 7ebceb5820035..8c96be6452a22 100644 --- a/provisioner/terraform/install.go +++ b/provisioner/terraform/install.go @@ -20,10 +20,10 @@ var ( // when Terraform is not available on the system. // NOTE: Keep this in sync with the version in scripts/Dockerfile.base. // NOTE: Keep this in sync with the version in install.sh. - TerraformVersion = version.Must(version.NewVersion("1.8.4")) + TerraformVersion = version.Must(version.NewVersion("1.9.2")) minTerraformVersion = version.Must(version.NewVersion("1.1.0")) - maxTerraformVersion = version.Must(version.NewVersion("1.8.9")) // use .9 to automatically allow patch releases + maxTerraformVersion = version.Must(version.NewVersion("1.9.9")) // use .9 to automatically allow patch releases terraformMinorVersionMismatch = xerrors.New("Terraform binary minor version mismatch.") ) From a907eb3bf29181d9304de1a0286e38a41db329cf Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 16 Jul 2024 00:15:25 +0300 Subject: [PATCH 2/3] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index d19d0a8673590..8fbc4e58f000c 100755 --- a/install.sh +++ b/install.sh @@ -250,7 +250,7 @@ EOF main() { MAINLINE=1 STABLE=0 - TERRAFORM_VERSION="1.8.4" + TERRAFORM_VERSION="1.9.2" if [ "${TRACE-}" ]; then set -x From 20430ecb3270b58227e495414315a4ae9a9358a5 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 16 Jul 2024 00:16:14 +0300 Subject: [PATCH 3/3] Update offline.md --- docs/install/offline.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/install/offline.md b/docs/install/offline.md index d4d8d24c0c111..cc1b9172f554a 100644 --- a/docs/install/offline.md +++ b/docs/install/offline.md @@ -54,7 +54,7 @@ RUN mkdir -p /opt/terraform # The below step is optional if you wish to keep the existing version. # See https://github.com/coder/coder/blob/main/provisioner/terraform/install.go#L23-L24 # for supported Terraform versions. -ARG TERRAFORM_VERSION=1.8.4 +ARG TERRAFORM_VERSION=1.9.2 RUN apk update && \ apk del terraform && \ curl -LOs https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \ @@ -79,7 +79,7 @@ ADD filesystem-mirror-example.tfrc /home/coder/.terraformrc # Optionally, we can "seed" the filesystem mirror with common providers. # Comment out lines 40-49 if you plan on only using a volume or network mirror: WORKDIR /home/coder/.terraform.d/plugins/registry.terraform.io -ARG CODER_PROVIDER_VERSION=0.12.1 +ARG CODER_PROVIDER_VERSION=1.0.1 RUN echo "Adding coder/coder v${CODER_PROVIDER_VERSION}" \ && mkdir -p coder/coder && cd coder/coder \ && curl -LOs https://github.com/coder/terraform-provider-coder/releases/download/v${CODER_PROVIDER_VERSION}/terraform-provider-coder_${CODER_PROVIDER_VERSION}_linux_amd64.zip