Skip to content
benpops89Public

About

Echo Base: Rebel-grade automation for your fleet of Linux systems

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

🚀 Echo Base

Echo Base is my Star Wars–themed infrastructure repo, inspired by the Rebel Alliance's hidden base on Hoth. It uses Ansible for configuration management and Terraform/OpenTofu for provisioning infrastructure in my homelab.

🏗️ Infrastructure

  • Coruscant 🖥️ – Storage and AI server (playbook: coruscant.yml)
  • Tungol 🌐 – VPS for additional services (playbook: tungol.yml)

📁 Structure

  • Root-level playbooks – Entry point playbooks for each machine:
    • coruscant.yml – Configures Coruscant (storage/AI server)
    • tungol.yml – Configures Tungol (VPS for services)
  • roles/ – Reusable Ansible components:
    • ai/ 🤖 – AI/ML tools (ComfyUI, Ollama, OpenWebUI)
    • automation/ ⚙️ – Workflow automation (Kestra, n8n)
    • database/ 🗄️ – Database services (PostgreSQL)
    • media/ 🎥 – Media processing (HandBrake, MKV)
    • nvidia/ 🎮 – NVIDIA GPU drivers and toolkit
    • pkm/ 📚 – Personal knowledge management (Readeck)
  • inventories/ – Inventory definitions for different environments (home, cloud, etc.)
  • group_vars/ – Shared configuration across hosts
  • terraform/ – OpenTofu configurations for provisioning resources:
    • modules/ses/ 📧 – SMTP email configuration using AWS SES, integrated with Cloudflare

⚙️ Setup

Prerequisites

  • mise 🔧 for tool management
  • AWS CLI configured with SSO profile "terraform" ☁️
  • fnox 🔐 for secret management (configured via fnox.toml)

Ansible

Install dependencies:

ansible-galaxy install -r requirements.yml

Run playbooks:

# For Coruscant (storage/AI server)
mise run coruscant

# For Tungol (VPS)
mise run tungol

Terraform/OpenTofu

Use mise to install and manage OpenTofu:

mise install

Authenticate with AWS:

mise run login

Initialize Terraform:

mise run init

Plan changes:

mise run plan

Apply changes:

mise run apply

Run playbooks:

# For Coruscant (storage/AI server)
mise run coruscant

# For Tungol (VPS)
mise run tungol

Terraform/OpenTofu

Use mise to install and manage OpenTofu:

mise install

Authenticate with AWS:

mise run login

Initialize Terraform:

mise run init

Plan changes:

mise run plan

Apply changes:

mise run apply

🔐 Secret scanning

Secrets are scanned with gitleaks via prek git hooks (prek.toml):

  • pre-commit – scans the staged diff, blocks the commit on a finding
  • pre-push – scans the full history, blocks the push on a finding
mise install          # installs gitleaks
prek install --hook-type pre-commit
prek install --hook-type pre-push

prek run --all-files  # run manually
gitleaks git --redact .   # audit the entire history

Rules live in .gitleaks.toml; the default ruleset is extended with a cloudflare-api-token rule covering the space-separated Caddy form (cloudflare <token>), which upstream does not match.

⚠️ The Cloudflare token committed in 5b86c4c / 92c01e7 / f64f3bb is still present in git history and must be rotated. The pre-push hook fails until that history is rewritten.

About

Echo Base: Rebel-grade automation for your fleet of Linux systems

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages