Files
homelab-infrastructure/infra/variables.tofu
T

33 lines
754 B
HCL

variable "master_count" {
description = "The number of master nodes to provision."
type = number
default = 1
nullable = false
}
variable "worker_count" {
description = "The number of worker nodes to provision."
type = number
default = 0
nullable = false
}
variable "cpus" {
description = "The number of CPU cores allocated to each virtual machine."
type = number
default = 2
nullable = false
validation {
condition = var.cpus >= 1
error_message = "Allocated CPUs must be equal to or greater than 1."
}
}
variable "memory" {
description = "The amount of memory allocated to each virtual machine."
type = string
default = "4GiB"
nullable = false
}