2024-08-20 19:03:23 +00:00
|
|
|
variable "nodes" {
|
|
|
|
type = map(object({
|
2024-11-04 20:32:57 +00:00
|
|
|
host = string
|
2024-08-20 19:03:23 +00:00
|
|
|
|
2024-09-17 19:22:50 +00:00
|
|
|
internal = optional(object({
|
|
|
|
ipv4 = string
|
|
|
|
ipv6 = string
|
|
|
|
}))
|
|
|
|
public = optional(object({
|
|
|
|
ipv4 = string
|
|
|
|
ipv6 = 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 "digitalocean_token" {
|
2024-09-20 19:32:17 +00:00
|
|
|
type = string
|
|
|
|
sensitive = true
|
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-08-23 20:03:47 +00:00
|
|
|
variable "tailscale_apikey" {
|
2024-09-20 19:32:17 +00:00
|
|
|
type = string
|
|
|
|
sensitive = true
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "authentik_token" {
|
|
|
|
type = string
|
|
|
|
sensitive = true
|
2024-08-23 20:03:47 +00:00
|
|
|
}
|