2024-07-14 10:19:37 +00:00
|
|
|
variable "nodes" {
|
|
|
|
type = map(object({
|
|
|
|
public = bool
|
|
|
|
type = string
|
|
|
|
host = string
|
|
|
|
|
|
|
|
cores = optional(number, 4)
|
2024-07-17 19:43:11 +00:00
|
|
|
memory = optional(number, 4096)
|
2024-07-14 10:19:37 +00:00
|
|
|
|
2024-07-19 20:48:07 +00:00
|
|
|
storage = string
|
2024-07-17 19:43:11 +00:00
|
|
|
boot_size = optional(number, 32)
|
2024-07-14 10:19:37 +00:00
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
2024-07-17 19:43:11 +00:00
|
|
|
variable "talos" {
|
2024-07-14 10:19:37 +00:00
|
|
|
type = object({
|
2024-07-17 19:43:11 +00:00
|
|
|
version = optional(string, "v1.7.5")
|
2024-07-14 10:19:37 +00:00
|
|
|
kubernetes = optional(string, "v1.30.0")
|
2024-07-17 19:43:11 +00:00
|
|
|
|
|
|
|
# Default is:
|
2024-07-25 15:42:08 +00:00
|
|
|
# customization:
|
|
|
|
# systemExtensions:
|
|
|
|
# officialExtensions:
|
|
|
|
# - siderolabs/kata-containers
|
|
|
|
# - siderolabs/qemu-guest-agent
|
|
|
|
# - siderolabs/tailscale
|
|
|
|
# - siderolabs/wasmedge
|
|
|
|
schematic_id = optional(string, "a125b6d6becb63df5543edfae1231e351723dd6e4d551ba73e0f30229ad6ff59")
|
2024-07-14 10:19:37 +00:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-07-16 19:13:04 +00:00
|
|
|
variable "allow_scheduling_on_control_planes" {
|
|
|
|
default = false
|
|
|
|
type = bool
|
|
|
|
description = "Allow scheduling on control plane nodes"
|
|
|
|
}
|
|
|
|
|
2024-07-14 10:19:37 +00:00
|
|
|
variable "cluster" {
|
|
|
|
type = object({
|
|
|
|
name = string
|
|
|
|
domain = string
|
|
|
|
api = optional(object({
|
|
|
|
subdomain = optional(string, "api")
|
|
|
|
port = optional(number, 6443)
|
|
|
|
}), {})
|
|
|
|
oidc = object({
|
|
|
|
client_id = string
|
|
|
|
issuer_url = string
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "tailscale_authkey" {
|
|
|
|
type = string
|
|
|
|
sensitive = true
|
|
|
|
}
|
2024-07-16 19:13:04 +00:00
|
|
|
|
|
|
|
variable "proxmox" {
|
|
|
|
type = object({
|
2024-07-17 19:43:11 +00:00
|
|
|
name = string
|
|
|
|
url = string
|
|
|
|
insecure = optional(bool, false)
|
2024-07-19 20:48:07 +00:00
|
|
|
common_storage = string
|
2024-07-16 19:13:04 +00:00
|
|
|
})
|
|
|
|
sensitive = true
|
|
|
|
}
|