2024-08-20 19:03:23 +00:00
|
|
|
variable "nodes" {
|
|
|
|
type = map(object({
|
|
|
|
name = string
|
|
|
|
|
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
|
|
|
host = string
|
|
|
|
bridge = string
|
|
|
|
|
|
|
|
cores = optional(number, 1)
|
2024-09-17 19:22:50 +00:00
|
|
|
memory = optional(number, 512)
|
2024-08-20 19:03:23 +00:00
|
|
|
|
|
|
|
storage = optional(string, "main")
|
|
|
|
boot_size = optional(number, 8)
|
|
|
|
|
|
|
|
cloudinit = string
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
2024-08-24 17:42:11 +00:00
|
|
|
variable "ssh_keys" {
|
|
|
|
type = list(string)
|
|
|
|
}
|
|
|
|
|
2024-08-20 19:03:23 +00:00
|
|
|
variable "common_storage" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "digitalocean_token" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "proxmox_token" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2024-08-23 20:03:47 +00:00
|
|
|
variable "tailscale_apikey" {
|
|
|
|
type = string
|
|
|
|
}
|