mirror of
https://github.com/apricote/home-cloud.git
synced 2026-01-13 13:01:03 +00:00
deps: upgrade to terraform 0.13
This commit is contained in:
parent
36b4fe6a6e
commit
6eba145ef4
4 changed files with 44 additions and 7 deletions
|
|
@ -1,11 +1,26 @@
|
|||
|
||||
terraform {
|
||||
required_version = "~> 0.12.0"
|
||||
required_version = ">= 0.13"
|
||||
|
||||
required_providers {
|
||||
hcloud = "~> 1.2"
|
||||
tls = "~> 2.1"
|
||||
template = "~> 2.1"
|
||||
random = "~> 2.2"
|
||||
hcloud = {
|
||||
source = "hetznercloud/hcloud"
|
||||
version = "~> 1.30"
|
||||
}
|
||||
tls = {
|
||||
source = "hashicorp/tls"
|
||||
version = "~> 2.1"
|
||||
}
|
||||
template = {
|
||||
source = "hashicorp/template"
|
||||
version = "~> 2.1"
|
||||
}
|
||||
random = {
|
||||
source = "hashicorp/random"
|
||||
version = "~> 2.2"
|
||||
}
|
||||
null = {
|
||||
source = "hashicorp/null"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
6
main.tf
6
main.tf
|
|
@ -8,7 +8,7 @@ module k3s_cluster {
|
|||
name = local.cluster_name
|
||||
server_image = "ubuntu-18.04"
|
||||
server_location = "nbg1"
|
||||
control_server_type = "cx11"
|
||||
control_server_type = "cx21"
|
||||
compute_server_type = "cx21"
|
||||
compute_count = 1
|
||||
domain = "c.apricote.de"
|
||||
|
|
@ -16,4 +16,8 @@ module k3s_cluster {
|
|||
ssh_keys = [file("./keys/id_terraform")]
|
||||
hcloud_csi_driver_token = var.hcloud_csi_driver_token
|
||||
flux_git_url = "git@github.com:apricote/home-cloud-flux"
|
||||
|
||||
providers = {
|
||||
hcloud = hcloud
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ variable "hcloud_token" {}
|
|||
|
||||
# Configure the Hetzner Cloud Provider
|
||||
provider hcloud {
|
||||
version = "~> 1.16.0"
|
||||
version = "~> 1.30"
|
||||
|
||||
token = var.hcloud_token
|
||||
}
|
||||
|
|
|
|||
18
versions.tf
Normal file
18
versions.tf
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
terraform {
|
||||
required_providers {
|
||||
hcloud = {
|
||||
source = "hetznercloud/hcloud"
|
||||
version = "~> 1.30"
|
||||
}
|
||||
random = {
|
||||
source = "hashicorp/random"
|
||||
}
|
||||
template = {
|
||||
source = "hashicorp/template"
|
||||
}
|
||||
tls = {
|
||||
source = "hashicorp/tls"
|
||||
}
|
||||
}
|
||||
required_version = ">= 0.13"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue