📖 Overview
Infrastructure as Code (IaC) for the Comprofix homelab using OpenTofu.
This repository provisions and manages resources such as the Proxmox VMs and LXC containers used in the Comprofix Homelab
🚀 Features
- Declarative infrastructure management with OpenTofu
- Remote state stored in PostgreSQL backend
- Secure injection of secrets into
terraform.auto.tfvars
- Supports Proxmox VM provisioning and Omada configuration
🔄 Workflow
- Checkout repo
- Generate
terraform.auto.tfvars
- Run
tofu init
,tofu fmt
,tofu validate
- Execute
tofu plan
- If successful, run
tofu apply
📖 Usage
Local testing:
# Initialize
tofu init
# Format configs
tofu fmt -recursive
# Validate configs
tofu validate
# Plan changes
PG_CONN_STR="postgres://..." tofu plan
# Apply changes
PG_CONN_STR="postgres://..." tofu apply
Description
Languages
HCL
76.7%
Shell
23.3%