Terraform, Ansible, and shell scripts for reproducible, automated deployment of the 5-machine distributed lab.
This repository contains Infrastructure-as-Code (IaC) definitions and deployment automation for the sovereign lab. It enables repeatable, version-controlled deployment of all nodes and services.
Status: 🔄 In Development — foundational framework being built out
infrastructure-as-code-lab/
├── README.md (this file)
├── terraform/
│ ├── main.tf Infrastructure definitions
│ ├── variables.tf Input variables & configurations
│ └── outputs.tf Output values for deployed resources
├── ansible/
│ ├── playbooks/
│ │ ├── base-os-setup.yml OS hardening, package installation
│ │ ├── docker-deployment.yml Docker & Docker Compose setup
│ │ ├── monitoring-stack.yml Prometheus & Grafana deployment
│ │ └── security-hardening.yml SSH keys, firewall, VLAN config
│ └── inventory/
│ └── hosts.ini Node inventory & group assignments
└── scripts/
├── bootstrap.sh Initial node discovery & SSH setup
├── deploy-stack.sh Full lab deployment orchestrator
└── validate-deployment.sh Health checks & service verification
| Repository | Purpose |
|---|---|
sovereign-ai-infrastructure |
Architecture documentation & node specifications |
local-ai-sovereign-stack |
Docker Compose definitions for AI stack |
proxmox-homelab-setup |
Hypervisor setup & LXC containerization |
- Bootstrap nodes with SSH key-based authentication
- Install base packages & utilities
- Configure firewall & VLAN segmentation
- Deploy Docker Engine on all nodes
- Configure Docker networking & volumes
- Validate container runtime health
- Deploy Prometheus + Grafana monitoring
- Deploy Ollama on GPU node (Arch-GPU)
- Deploy n8n automation platform
- Deploy security agents on Kali-Master
- Verify all services running
- Confirm Prometheus metrics collection
- Test Grafana dashboard access
- Validate inter-node connectivity
# Bootstrap nodes (assumes SSH access)
./scripts/bootstrap.sh
# Deploy full stack
./scripts/deploy-stack.sh
# Validate deployment
./scripts/validate-deployment.sh- Node Recovery Procedures — Disaster recovery runbooks
- Docker Hosting Guide — Container deployment details
- Orchestration SOPs — Operational procedures
Infrastructure defined as code — reproducible, auditable, recoverable.