Skip to main content

2. Deployment

The deployment guide describes the full Terraform workflow. Follow the sections in order for a new installation; return to the LXC and bootstrap sections when adding guests later.

Chapter index​

  1. Prerequisites — inventory, templates, credentials, backups, and host access.
  2. Configure and initialize — shared settings, provider initialization, local checks, and initial guest settings.
  3. Extra VM disks — data disks, storage overrides, backups, and mounting inside the guest.
  4. LXC guests and storage — templates, mount volumes, backups, nesting, SSH, and migration.
  5. Apply Proxmox host routing — forwarding, aggregate routes, and startup ordering.
  6. Declare local DNS records — explicit Pi-hole records and wildcard migration.
  7. Provision stopped guests — saved plans, routing outputs, and stopped-guest inspection.
  8. Start inspected guests — activation after inspection.
  9. Bootstrap guest SSH — temporary setup access.
  10. Debian guest setup — login proxy variables, APT downloads, and Docker proxy and log rotation settings.
  11. Live acceptance and removal — packet checks, persistence, and cleanup.

Use the firewall and access chapter alongside this guide when configuring services and dependencies.