incrase memory and cpi alotment

This commit is contained in:
tolerryan
2026-08-22 02:51:27 +00:00
parent 721043c69a
commit bab261df53
2 changed files with 11 additions and 0 deletions

View File

@@ -70,6 +70,15 @@ resource "proxmox_virtual_environment_container" "example_template" {
"terraform", "terraform",
] ]
cpu {
cores = var.cores
}
memory {
dedicated = var.memory
swap = var.swap
}
startup { startup {
order = "3" order = "3"
up_delay = "60" up_delay = "60"

View File

@@ -37,6 +37,8 @@ variable "vm_id" { default = "160" }
variable "ip_address" { default = "192.168.0.60/24" } variable "ip_address" { default = "192.168.0.60/24" }
variable "gateway" { default = "192.168.0.1" } variable "gateway" { default = "192.168.0.1" }
variable "password" { default = "example" } variable "password" { default = "example" }
variable "memory" { default = 2048 } # Sets dedicated RAM to 2048 MB (2 GB)
variable "cores" { default = 3 }
# --------------------------------------------------------------- # ---------------------------------------------------------------
# Node & template file # Node & template file