the terransible project can deploy on one or multiple nodes

This commit is contained in:
2025-03-28 22:46:13 +00:00
parent c3db663e9e
commit bc19a7638b
5 changed files with 62 additions and 16 deletions

View File

@@ -7,4 +7,28 @@ variable "proxmox_api_token" {
description = "Proxmox API token"
type = string
sensitive = true
}
variable "multi_node_deployment" {
description = "true : deploy VMs on each node, false : deploy only on a given node"
type = bool
default = true
}
variable "target_node" {
description = "Node which host the VM if multi_node_deployment = false"
type = string
default = ""
}
variable "vm_attr" {
description = "VM attributes"
type = map(object({
ram = number
cpu = number
vlan = number
}))
default = {
"vm" = { ram = 2048, cpu = 2, vlan = 66 }
}
}