A terraform module to create and manage proxmox virtual machines.
module "proxmox_vm" {
source = "OT-CLOUD-KIT/terraform-proxmox-vm"
name = "dummy-vm"
target_node = "srv-01"
vm_id = 188
cpu_core = 1
memory_size = 2048
template = "Ubuntu-24"
storage = "local"
disk_size = "30G"
tags = "dummy;prod"
}| Name | Version |
|---|---|
| proxmox | 3.0.2-rc01 |
| Name | Version |
|---|---|
| proxmox | 3.0.2-rc01 |
No modules.
| Name | Type |
|---|---|
| proxmox_vm_qemu.proxmox_vm | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| cpu_core | Number of CPU core needs to be assigned | number |
n/a | yes |
| disk_size | Size with G(GB) to create disk and attach it to VM | string |
"30G" |
no |
| memory_size | Size of the memory in MBs for the VM | number |
n/a | yes |
| name | Name of the proxmox VM needs to be provisioned | string |
n/a | yes |
| scsi_hw | Name of the SCSI Hardware to create Disk | string |
"virtio-scsi-single" |
no |
| storage | Type of proxmox disk which needs to be attached | string |
"local" |
no |
| tags | List of comma separated tags which needs to be attached | string |
"proxmox" |
no |
| target_node | Target proxmox server on which VM needs to be provisioned | string |
n/a | yes |
| template | Proxmox VM template to create the VM | string |
n/a | yes |
| vm_id | Unique ID of the target VM creation | number |
n/a | yes |
| Name | Description |
|---|---|
| id | ID of the proxmox VM |
| vm_state | State of the proxmox VM |