feat: add ability to set disk size
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kasper Juul Hermansen 2025-01-11 22:04:34 +01:00
parent caa489fbf9
commit 1f65d3c75e
Signed by: kjuulh
SSH Key Fingerprint: SHA256:RjXh0p7U6opxnfd3ga/Y9TCo18FYlHFdSpRIV72S/QM
2 changed files with 5 additions and 1 deletions

View File

@ -84,7 +84,7 @@ resource "proxmox_vm_qemu" "node" {
disk {
storage = "local"
# The size of the disk should be at least as big as the disk in the template. If it's smaller, the disk will be recreated
size = "10G"
size = var.disk_size
}
}
}

View File

@ -57,3 +57,7 @@ variable "cpu" {
variable "memory" {
default = 512
}
variable "disk_size" {
default = "10G"
}