feat: variabilize disk size

This commit is contained in:
2025-09-10 08:15:25 +00:00
parent 2f60387d70
commit 89be2412ef
2 changed files with 8 additions and 2 deletions

View File

@@ -66,9 +66,9 @@ resource "proxmox_virtual_environment_vm" "vm" {
}
disk {
datastore_id = var.node_datastore # Datastore to hold the disk
datastore_id = var.node_datastore # Datastore to hold the disk
interface = "scsi0" # Primary disk interface
size = 10 # Disk size in GB
size = var.vm_disk_size # Disk size in GB
}
initialization {

View File

@@ -44,6 +44,12 @@ variable "vm_ram" {
default = 2048
}
variable "vm_disk_size" {
description = "Size of the disk (GB) of the VM"
type = number
default = 10
}
variable "vm_bios" {
description = "Type of BIOS used for the VM"
type = string