carew.dev

IaC Homelab

Fully IaC Homelab with Terraform, Ansible and Proxmox

Over the past year or so, I’ve gotten much more invested in my homelab.

I’ve always messed around with self-hosting things, even tried hosting Active Directory at my parents house when I was 19, but I’ve never taken any of it serious enough to consider “production”.

That is, until now. I want a fully “production” homelab. I want my resources to be fixed, and I want it to be fully reproducible. I want IaC.

For years I had an old raspberry pi 2 running as a pihole. And then for a time I got into Unifi gear and got a USG, US-8-60w, and a AP. Then I needed a place to host the unifi service, so that went onto a different Raspberry pi, this one with a PoE hat so it would stay online (man was the fan on that hat loud).

Then maybe 2 years ago I bought an HP G3 thin client to start acting as my homelab server when I started hearing more and more about Proxmox.

Now, I’ve got my old desktop hosting my homelab. It’s got room for expansion.

Enough homelab history, this is about the code that makes it happen.

TODO