From bf6bdd46f10d34d29b650354327ed5b5a7757d84 Mon Sep 17 00:00:00 2001 From: Antoine Date: Tue, 12 Jan 2021 23:21:07 +0100 Subject: [PATCH] migrate to terraform 0.13 --- base/libvirtd.tf | 17 +++++++++++++---- base/versions.tf | 3 +++ stack/libvirtd.tf | 15 ++++++++++++--- stack/versions.tf | 3 +++ 4 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 base/versions.tf create mode 100644 stack/versions.tf diff --git a/base/libvirtd.tf b/base/libvirtd.tf index 61aaa6c..2cad44e 100644 --- a/base/libvirtd.tf +++ b/base/libvirtd.tf @@ -1,12 +1,21 @@ # https://github.com/dmacvicar/terraform-provider-libvirt/blob/master/website/docs/r terraform { - required_version = ">= 0.12" + required_providers { - null = "~> 2.1" - template = "~> 2.1" - libvirt = ">= 0.0.0" + null = { + source = "hashicorp/null" + version = "~> 2.1" + } + template = { + source = "hashicorp/template" + version = "~> 2.1" + } + libvirt = { + source = "dmacvicar/libvirt" + version = ">= 0.6.3" + } } backend "etcdv3" { diff --git a/base/versions.tf b/base/versions.tf new file mode 100644 index 0000000..6b6318d --- /dev/null +++ b/base/versions.tf @@ -0,0 +1,3 @@ +terraform { + required_version = ">= 0.13" +} diff --git a/stack/libvirtd.tf b/stack/libvirtd.tf index 3145a24..a19af1f 100644 --- a/stack/libvirtd.tf +++ b/stack/libvirtd.tf @@ -4,9 +4,18 @@ terraform { required_version = ">= 0.12" required_providers { - null = "~> 2.1" - template = "~> 2.1" - libvirt = ">= 0.0.0" + null = { + source = "hashicorp/null" + version = "~> 2.1" + } + template = { + source = "hashicorp/template" + version = "~> 2.1" + } + libvirt = { + source = "dmacvicar/libvirt" + version = ">= 0.6.3" + } } backend "etcdv3" { diff --git a/stack/versions.tf b/stack/versions.tf new file mode 100644 index 0000000..6b6318d --- /dev/null +++ b/stack/versions.tf @@ -0,0 +1,3 @@ +terraform { + required_version = ">= 0.13" +}