Skip to content

OT-CLOUD-KIT/terraform-proxmox-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform: Proxmox VM

A terraform module to create and manage proxmox virtual machines.

Usage

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"
}

Requirements

Name Version
proxmox 3.0.2-rc01

Providers

Name Version
proxmox 3.0.2-rc01

Modules

No modules.

Resources

Name Type
proxmox_vm_qemu.proxmox_vm resource

Inputs

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

Outputs

Name Description
id ID of the proxmox VM
vm_state State of the proxmox VM

About

A terraform module to create VM on proxmox

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages