Skip to content

Instantly share code, notes, and snippets.

@Nokius
Created March 6, 2018 17:12
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Nokius/28625784fece5d25cfc003b7e57eac99 to your computer and use it in GitHub Desktop.
Save Nokius/28625784fece5d25cfc003b7e57eac99 to your computer and use it in GitHub Desktop.
[Terraform][proxmox] small VM created with terraform on proxmox

terraform-provider-proxmox

simple VM created with terraform-provider-proxmox

  • one core
  • 512MB RAM
  • Ubuntu netinstall CDROM
  • 32GB IDE HDD
  • bridged network interface
provider "proxmox" {
host = "https://myproxmox:8006"
}
resource "proxmox_resource_vm" "terraform-example" {
node = "myproxmox_node"
name = "terraform-example"
vm_id = "101"
cores = "1"
memory = "512"
ide_devices {
number = "2"
file = "local:iso/Ubuntu-16.03.3-netinstall.iso"
media = "cdrom"
}
ide_devices {
number = "0"
file = "local-lvm:32"
size = "32"
media = "disk"
}
network_devices {
number = "0"
model = "virtio"
bridge = "vmbr0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment