feat: Create nodes from templates

This commit is contained in:
Peter 2025-11-15 20:49:31 +01:00
parent 8f7e83d818
commit 2dcd54fe4b
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg
13 changed files with 230 additions and 143 deletions

View file

@ -1,20 +1,23 @@
variable "node" {
description = "Virtual node configuration"
description = "Basic configuration for the Talos node"
type = object({
id = number
name = string
ipv4_address = string
ipv4_gateway = string
cpu = number
memory = number
disk = string
storagepool = string
talos_version = string
cluster_name = string
kubernetes_version = string
cluster_endpoint = string
proxmox_node = string
controlplane_addresses = list(string)
worker_addresses = list(string)
id = number
name = string
ipv4_address = string
ipv4_gateway = string
cpu = number
memory = number
disk = string
storagepool = string
talos_version = string
cluster_name = string
kubernetes_version = string
cluster_endpoint = string
proxmox_node = string
})
}
variable "pvc_disks" {
description = "List of extra disks to attach to the node"
type = list(number)
default = []
}