Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
terraform: update terraform providers to new format
Browse files Browse the repository at this point in the history
This commit updates the versions.tf and terraform providers to the
required format for 0.13 version.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
  • Loading branch information
ipochi committed Oct 21, 2020
1 parent 384c38a commit 4aead4f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 33 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
# Terraform version and plugin versions

terraform {
required_version = ">= 0.12.0"
required_version = ">= 0.13"

required_providers {
ct = "0.6.0"

ct = {
source = "poseidon/ct"
version = "0.6.1"
}

libvirt = {
source = "dmacvicar/libvirt"
uri = "qemu:///system"
version = "0.6.2"
}

null = "2.1.2"
template = "2.1.2"
libvirt = "0.6.0"
random = "2.3.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# Terraform version and plugin versions

terraform {
required_version = ">= 0.12.0"
required_version = ">= 0.13"

required_providers {
ct = "0.6.0"
ct = {
source = "poseidon/ct"
version = "0.6.1"
}

libvirt = {
source = "dmacvicar/libvirt"
uri = "qemu:///system"
version = "0.6.2"
}
template = "2.1.2"
libvirt = "0.6.0"
}
}
41 changes: 14 additions & 27 deletions pkg/platform/kvmlibvirt/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,36 +120,23 @@ module "worker-pool-{{ $index }}" {
}
{{- end }}
provider "libvirt" {
uri = "qemu:///system"
version = "~> 0.6.0"
}
provider "ct" {
version = "~> 0.5.0"
}
provider "local" {
version = "~> 1.2"
}
provider "null" {
version = "~> 2.1"
terraform {
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
uri = "qemu:///system"
version = "0.6.2"
}
ct = {
source = "poseidon/ct"
version = "0.6.1"
}
}
}
provider "template" {
version = "~> 2.1"
}
provider "tls" {
version = "~> 2.0"
}
provider "random" {
version = "~> 2.2"
provider "libvirt" {
uri = "qemu:///system"
}
# Stub output, which indicates, that Terraform run at least once.
# Used when checking, if we should ask user for confirmation, when
# applying changes to the cluster.
Expand Down

0 comments on commit 4aead4f

Please sign in to comment.