Files
Felix Nehrke ed656189ea Replace deprecated datacenter by location for priamry-ips
Hetzner has changed it's API and removed the field `datacenter` from the
primary IPs in favor of `location`. This change reflex this and adjusts
the configuration accordingly. Note, that this change didn't require any
manual state changes. Instead I applied the former plan with the newest
provider once. Hence the provider already treated the fields correctly I
only had to adjust the configuration.
Chapeau Hetzner for this good transition!

See-also: 14da745f Update tofu-resources to their latest versions
Reference: https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters
2026-02-13 00:33:47 +01:00

59 lines
1.0 KiB
HCL

variable "name" {
type = string
}
variable "ssh_keys" {
type = list(string)
}
variable "servers" {
type = list(object({
type = string
location = string
}))
}
variable "agents" {
type = list(object({
count = optional(number, 1)
type = string
location = string
}))
}
variable "ping_enabled" {
type = bool
default = true
}
variable "public_tcp_services" {
type = map(list(string))
default = {}
}
variable "kubernetes_exposed_ips" {
type = list(string)
default = []
}
variable "ssh_exposed_ips" {
type = list(string)
default = []
}
variable "ssh_port" {
type = number
default = 1022
}
variable "auto_delete_primary_ips" {
default = true
description = <<EOF
Set this to "false" to keep the primary IPs bound to your Hetzner-Account, even after a destroy.
This setting would allow for reuse of the same IPs between multiple create/destroy cycles.
Though, it doesn't guarantee reuse of the same IPs.
Note, that reserved IPs will create costs, even if they're not used.
EOF
}