Files
proxmox-tofu/proxmox/variables.tf
Max Pfeiffer 0a410366ed Fixed handling of install images
The default image was missing the qemu guest agent.
2024-11-09 18:00:12 +01:00

62 lines
1.5 KiB
HCL

variable "proxmox_api_url" {
type = string
}
variable "proxmox_api_token_id" {
type = string
sensitive = true
}
variable "proxmox_api_token_secret" {
type = string
sensitive = true
}
variable "proxmox_target_node" {
type = string
}
variable "cluster_name" {
description = "A name to provide for the Talos cluster"
type = string
}
variable "cluster_endpoint" {
description = "The endpoint for the Talos cluster"
type = string
}
variable "node_data" {
description = "A map of node data"
type = object({
controlplanes = map(object({
install_disk = string
install_image = string
hostname = optional(string)
}))
workers = map(object({
install_disk = string
install_image = string
hostname = optional(string)
}))
})
default = {
controlplanes = {
"192.168.1.150" = {
install_disk = "/dev/vda"
install_image = "factory.talos.dev/installer/ce4c980550dd2ab1b17bbf2b08801c7eb59418eafe8f279833297925d67c7515:v1.8.2"
},
}
workers = {
"192.168.1.151" = {
install_disk = "/dev/vda"
install_image = "factory.talos.dev/installer/ce4c980550dd2ab1b17bbf2b08801c7eb59418eafe8f279833297925d67c7515:v1.8.2"
},
"192.168.1.152" = {
install_disk = "/dev/vda"
install_image = "factory.talos.dev/installer/ce4c980550dd2ab1b17bbf2b08801c7eb59418eafe8f279833297925d67c7515:v1.8.2"
}
}
}
}