From 8b35f46bae1ce188629a3042d6bebcc6a9af7e46 Mon Sep 17 00:00:00 2001 From: Audun Nes Date: Fri, 28 Jun 2024 12:35:38 +0200 Subject: [PATCH] Prepare for opentofu support. Fix line endings in versions.tf --- renovate.json | 6 ++++++ versions.tf | 26 +++++++++++++------------- versions.tofu | 13 +++++++++++++ 3 files changed, 32 insertions(+), 13 deletions(-) create mode 100644 versions.tofu diff --git a/renovate.json b/renovate.json index c60b20a1..3561880c 100644 --- a/renovate.json +++ b/renovate.json @@ -3,6 +3,12 @@ "extends": [ "local>dfds/renovate-config" ], + "terraform": { + "fileMatch": [ + "\\.tf$", + "\\.tofu$" + ] + }, "packageRules": [ { "matchUpdateTypes": [ diff --git a/versions.tf b/versions.tf index d0945154..0f3a41aa 100644 --- a/versions.tf +++ b/versions.tf @@ -1,13 +1,13 @@ -terraform { - required_version = ">= 1.3.0, < 1.6.0" - required_providers { - aws = { - source = "hashicorp/aws" - version = "~> 5.0" - } - random = { - source = "hashicorp/random" - version = ">= 3.1" - } - } -} +terraform { + required_version = ">= 1.3.0, < 1.6.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.0" + } + random = { + source = "hashicorp/random" + version = ">= 3.1" + } + } +} diff --git a/versions.tofu b/versions.tofu new file mode 100644 index 00000000..8e786c6a --- /dev/null +++ b/versions.tofu @@ -0,0 +1,13 @@ +terraform { + required_version = ">= 1.8.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.0" + } + random = { + source = "hashicorp/random" + version = ">= 3.1" + } + } +}