Files
homelab/tofu/kubernetes/variables.tf
Vegard Hagen 207b1892bf feat: cleanup of remodelling
move remodel folder down to root and delete old unused manifests
2024-07-21 23:21:12 +02:00

55 lines
1.3 KiB
HCL

variable "proxmox" {
type = object({
name = string
cluster_name = string
endpoint = string
insecure = bool
username = string
api_token = string
})
sensitive = true
}
#variable "cluster_config" {
# description = "Talos node configuration"
# type = object({
#
# cluster_name = string
# proxmox_cluster = string
# endpoint = string
# talos_version = string
#
# nodes = map(
# object({
# host_node = string
# machine_type = string
# ip = string
# mac_address = string
# vm_id = number
# cpu = number
# ram_dedicated = number
# update = optional(bool, false)
# igpu = optional(bool, false)
# })
# )
# })
#
# validation {
# condition = length([
# for n in var.cluster_config.nodes : n if contains(["controlplane", "worker"], n.machine_type)]) == length(var.cluster_config.nodes)
# error_message = "Node machine_type must be either 'controlplane' or 'worker'."
# }
#}
#
#variable "volumes" {
# type = map(
# object({
# node = string
# size = string
# storage = optional(string, "local-zfs")
# vmid = optional(number, 9999)
# format = optional(string, "raw")
# })
# )
#}