cluster/vars.tf

108 lines
1.8 KiB
Terraform
Raw Normal View History

2024-09-09 11:46:50 +00:00
variable "hcloud_token" {
type = string
sensitive = true
}
variable "cloudflare_api_token" {
type = string
sensitive = true
}
variable "cloudflare_account_id" {
type = string
sensitive = true
}
variable "k3s_token" {
type = string
sensitive = true
}
variable "k3s_backup_access_key" {
sensitive = true
type = string
}
variable "k3s_backup_secret_key" {
sensitive = true
type = string
}
variable "k3s_backup_endpoint" {
type = string
}
variable "litestream_version" {
type = string
default = "v0.3.13"
}
2024-11-07 21:15:35 +00:00
variable "spin_shim_version" {
type = string
default = "v0.16.0"
}
2024-09-09 11:46:50 +00:00
variable "control_plane_k3s_version" {
type = string
2024-10-28 10:40:28 +00:00
default = "v1.30.5+k3s1"
2024-09-09 11:46:50 +00:00
}
variable "worker_k3s_version" {
type = string
2024-10-28 10:40:28 +00:00
default = "v1.30.5+k3s1"
2024-09-09 11:46:50 +00:00
}
variable "k3s_sans" {
type = list(string)
}
variable "garage_storage" {
description = "Config of Garage storage"
type = object({
size = number
location = string
})
default = {
size = 20
location = "hel1"
}
}
variable "k3s_control_plane" {
type = map(object({
server_type = string
generation = number
private_ip = string
location = string
alias_ips = set(string)
}))
}
variable "k3s_workers" {
type = map(object({
server_type = string
generation = number
private_ip = string
location = string
storage_node = bool
}))
}
variable "ssh_keys" {
type = list(string)
default = []
description = "Additional SSH public keys for user 'core'."
}
variable "flatcar_release_channel" {
type = string
description = "Release channel"
default = "stable"
validation {
condition = contains(["lts", "stable", "beta", "alpha"], var.flatcar_release_channel)
error_message = "release_channel must be lts, stable, beta, or alpha."
}
}