Files
OpenTofuPlayground/apps/example-dev.tfvars
Lutz Finsterle cb4d02a361
Some checks failed
Deploy / Update K8s Apps / Detect changed K8s tfvars (push) Successful in 12s
Deploy / Update Apps / Detect changed tfvars files (push) Successful in 11s
Test / Unit Tests — Docker Stack (push) Has been skipped
Test / Unit Tests — K8s Stack (push) Has been skipped
Test / Static Analysis (push) Failing after 23s
Deploy / Update K8s Apps / Deploy ${{ matrix.tfvars }} (push) Failing after 12s
Deploy / Update K8s Apps / Destroy ${{ matrix.tfvars }} (push) Has been skipped
Deploy / Update Apps / Deploy ${{ matrix.tfvars }} (push) Failing after 12s
Deploy / Update Apps / Destroy ${{ matrix.tfvars }} (push) Has been skipped
Test / Integration Test — K8s (k3d) (push) Has been skipped
tofu fmt
2026-03-13 20:13:42 +01:00

25 lines
1.6 KiB
HCL

# ─── Remote Host ──────────────────────────────────────────────────────────────
ssh_host = "dev-server.example.com"
ssh_user = "deploy"
# ssh_key_path is supplied at runtime by CI/CD from gopass — not stored here.
# ─── App Identity ─────────────────────────────────────────────────────────────
app_name = "myapp"
environment = "dev" # ephemeral containers, no persistent volumes
# ─── OpenResty: bind_mount mode ───────────────────────────────────────────────
# Mount a directory that already exists on the remote server.
# Manage the files there separately (rsync, Ansible, etc.).
openresty_source_type = "bind_mount"
openresty_remote_config_path = "/opt/apps/myapp/openresty"
openresty_external_port = 8080
# ─── PostgreSQL ───────────────────────────────────────────────────────────────
db_name = "myapp_dev"
db_user = "myapp"
db_password = "changeme-dev" # use gopass / CI secret for real deployments
# ─── Images (optional overrides) ──────────────────────────────────────────────
# postgres_image = "postgres:16-alpine"
# redis_image = "redis:7-alpine"