Skip to content

Ty182/Proxmox-Homelab-as-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Automated Homelab with Proxmox, Packer, and Terraform

The aim for this project is to build a homelab using infrastructure as code and automation. Rather than spend 30min configuring unique VMs, we'll be able to deploy and use VMs within minutes.

Another benefit of defining everything as code and using automation is that we can rip and replace these VMs to ensure they're always up-to-date without needing to worry about implementing a patching process.

Setup

I'm using Proxmox as the hypervisor as it's open-source, free to use, and has a community-created Terraform provider. This is installed on an old Intel Nuc I bought years ago for messing around with. Specs:

  • Intel Core i5-8259U CPU (8 cores)
  • 16GB RAM
  • 256GB NVME

Prerequisites

  • Install an IDE like Visual Studio Code brew install visual-studio-code --cask
  • Install Proxmox
  • Install Terraform brew install terraform
  • Install Packer brew install packer

References

Directory

  • packer_template/
    • Contains packer configuration to create a VM template in Proxmox
  • terraform_vm_deployment
    • Contains terraform configuration to deploy VMs to Proxmox utilizing the VM template created by Packer

To Do List

  • Utilizie a CI/CD process such as GitLab's or GitHub Actions
  • Utilize Packer to create a VM template in Proxmox
  • Utilize Terraform to deploy VMs via the template to Proxmox

About

A automated Proxmox homelab built as code using Packer and Terraform.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages