This repository has been archived on 2026-07-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
nixos/terraform/proxmox
beatzaplentyandClaude Sonnet 4.6 f85c65870f Initial infrastructure mono-repo scaffold
Consolidates nixos, docker, raspi, and debian-configuration into a single
infrastructure-as-code repo. Includes:

- ansible/: full inventory + proxmox-hardening, freeipa, and raspberrypi
  roles (converted from debian-configuration bash scripts)
- terraform/: Proxmox VMs, Dynu DNS, Pi-hole (decommissioned stub),
  Docker container catalog — migrated from docker/infrastructure/terraform/
- stacks/docker/, stacks/raspi/, nixos/: placeholder READMEs pending
  git subtree population (see implementation plan)
- docs/: internal MkDocs site with architecture, network topology, runbooks,
  and drift-detection guide; external sanitized site
- scripts/: drift-detect.sh, docs-build.sh, install-hooks.sh, check-secrets.sh
- CI: secret-scan (push/PR), drift-detect (daily), docs-build (on change)
- Pi-hole removed throughout — DNS is FreeIPA, DHCP is router

See docs/internal/implementation-plan.md for the phased rollout after
pushing to Gitea.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UvNjoxTWEDkhXsd1Dq2ETP
2026-07-30 07:07:47 +10:00
..

Terraform Proxmox Inventory Layer

This directory codifies existing Proxmox infrastructure using an import-first reconciliation model.

Purpose

  • Track existing Proxmox VMs in Terraform.
  • Reconcile imported VM configuration into maintainable, explicit files.
  • Represent physical host metadata as structured Terraform locals/outputs.
  • Support documentation inventory and future downstream tooling.

Current repository status

This directory already contains imported/reconciled VM resources (for example docker, server-nixos, nix-cache, pbs, pihole) plus host metadata locals/outputs.

This means it is no longer just a scaffold; treat it as active infrastructure inventory code.

Workflow standard (brownfield)

  1. Import one existing VM at a time.
  2. Confirm provider-specific import ID format.
  3. Inspect state/plan details.
  4. Keep hand-maintained .tf files focused and readable.
  5. Use ignore_changes only where drift noise is unavoidable.
  6. Stop when plan is sane/no-op for intended scope.

File organization expectations

  • Prefer one-resource-per-file patterns when practical.
  • Keep shared metadata in locals/outputs with clear descriptions.
  • Keep generated comments/config under ongoing cleanup rather than assuming generated output is final.

Safety notes

  • Do not run broad applies casually.
  • Do not commit real credentials or .tfstate*.
  • Keep changes incremental and reviewable.