feat: variabilize disk size
This commit is contained in:
@@ -68,7 +68,7 @@ resource "proxmox_virtual_environment_vm" "vm" {
|
||||
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 {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user