feat: variabilize disk size
This commit is contained in:
@@ -66,9 +66,9 @@ resource "proxmox_virtual_environment_vm" "vm" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
disk {
|
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
|
interface = "scsi0" # Primary disk interface
|
||||||
size = 10 # Disk size in GB
|
size = var.vm_disk_size # Disk size in GB
|
||||||
}
|
}
|
||||||
|
|
||||||
initialization {
|
initialization {
|
||||||
|
@@ -44,6 +44,12 @@ variable "vm_ram" {
|
|||||||
default = 2048
|
default = 2048
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "vm_disk_size" {
|
||||||
|
description = "Size of the disk (GB) of the VM"
|
||||||
|
type = number
|
||||||
|
default = 10
|
||||||
|
}
|
||||||
|
|
||||||
variable "vm_bios" {
|
variable "vm_bios" {
|
||||||
description = "Type of BIOS used for the VM"
|
description = "Type of BIOS used for the VM"
|
||||||
type = string
|
type = string
|
||||||
|
Reference in New Issue
Block a user