feat: variabilize disk size
This commit is contained in:
1 parent
2f60387d70
commit
89be2412ef
2 files changed
+8
-2
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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