mirror of
https://github.com/optim-enterprises-bv/homelab.git
synced 2025-11-01 18:37:52 +00:00
35 lines
733 B
HCL
35 lines
733 B
HCL
variable "cluster" {
|
|
type = object({
|
|
name = string
|
|
endpoint = string
|
|
talos_version = string
|
|
})
|
|
}
|
|
|
|
variable "host_machines" {
|
|
type = list(string)
|
|
}
|
|
|
|
variable "node_data" {
|
|
description = "A map of node data"
|
|
type = object({
|
|
controlplanes = map(object({
|
|
ip = string
|
|
mac_address = string
|
|
host_node = string
|
|
vm_id = number
|
|
cpu = number
|
|
ram_dedicated = number
|
|
igpu = optional(bool, false)
|
|
}))
|
|
workers = map(object({
|
|
ip = string
|
|
mac_address = string
|
|
host_node = string
|
|
vm_id = number
|
|
cpu = number
|
|
ram_dedicated = number
|
|
}))
|
|
})
|
|
}
|