Header Image

deploy-containers

📖 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

  1. Checkout repo
  2. Generate terraform.auto.tfvars
  3. Run tofu init, tofu fmt, tofu validate
  4. Execute tofu plan
  5. 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
No description provided
Readme 48 KiB
Languages
HCL 76.7%
Shell 23.3%