mirror of
https://github.com/optim-enterprises-bv/homelab.git
synced 2025-11-01 10:27:49 +00:00
55 lines
1.3 KiB
HCL
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")
|
|
# })
|
|
# )
|
|
#}
|