2024-08-20 19:03:23 +00:00
|
|
|
variable "nodes" {
|
|
|
|
type = map(object({
|
2024-11-30 20:35:13 +00:00
|
|
|
id = number
|
2024-11-04 20:32:57 +00:00
|
|
|
host = string
|
2024-08-20 19:03:23 +00:00
|
|
|
|
2024-11-08 21:11:27 +00:00
|
|
|
ipv4_address = string
|
|
|
|
ipv4_gateway = string
|
2024-09-17 19:22:50 +00:00
|
|
|
|
2024-11-08 21:11:27 +00:00
|
|
|
ipv6_address = string
|
|
|
|
ipv6_gateway = string
|
2024-08-20 19:03:23 +00:00
|
|
|
|
|
|
|
cores = optional(number, 1)
|
2024-09-17 19:22:50 +00:00
|
|
|
memory = optional(number, 512)
|
2024-08-20 19:03:23 +00:00
|
|
|
|
2024-11-04 20:32:57 +00:00
|
|
|
iso_storage = string
|
2024-08-20 19:03:23 +00:00
|
|
|
|
2024-11-04 20:32:57 +00:00
|
|
|
boot_storage = string
|
|
|
|
boot_size = optional(number, 8)
|
2024-08-20 19:03:23 +00:00
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
2024-08-24 17:42:11 +00:00
|
|
|
variable "ssh_keys" {
|
|
|
|
type = list(string)
|
|
|
|
}
|
|
|
|
|
2024-08-20 19:03:23 +00:00
|
|
|
variable "proxmox_token" {
|
2024-09-20 19:32:17 +00:00
|
|
|
type = string
|
|
|
|
sensitive = true
|
2024-08-20 19:03:23 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 19:32:17 +00:00
|
|
|
variable "authentik_token" {
|
|
|
|
type = string
|
|
|
|
sensitive = true
|
2024-08-23 20:03:47 +00:00
|
|
|
}
|
2024-11-11 20:31:32 +00:00
|
|
|
|
|
|
|
variable "tailscale_apikey" {
|
|
|
|
type = string
|
|
|
|
sensitive = true
|
|
|
|
}
|