a Luminare Development open-source project
Infrastructure as code that rebuilds a small edge environment from nothing with one command, tested on every change.
git clone https://github.com/luminare-dev/infra-edge-lab.git
cd infra-edge-lab
task test
task e2e:localThis needs go-task, Python 3.12 or 3.13 with venv, git, OpenTofu and a Docker daemon that
allows privileged containers, but no account and no secret (docs/install.md).
task e2e:local creates edge-01, db-01 and fx-01 as systemd containers, configures them
twice (the second run must change nothing), smoke-tests them, tests a backup restore and
destroys them again. CI runs the same on every pull request.
OpenTofu creates the hosts, the Cloudflare tunnel, its DNS records and the Access applications;
every environment returns the same hosts output, which scripts/render_inventory.py turns into
an Ansible inventory. ansible/playbooks/site.yml then configures every environment with the
luminare.infra_edge and luminare.gameserver collections and the roles in ansible/roles.
Credentials live in SOPS files and reach a command only through its environment.
| Environment | Hosts | Status |
|---|---|---|
local |
edge-01, db-01, fx-01 as systemd containers on the local Docker daemon |
rebuilt by CI on every pull request |
lab |
Proxmox VE virtual machines behind a tunnel and Access | validated and tested with mocked providers, not applied yet |
demo |
one throw-away cloud server, or a container for the tunnel test | validated and tested with mocked providers, not applied yet |
showcase |
one protected long-lived cloud server (skeleton) | validated and planned offline, not applied yet |
The environments never touch hosts they did not create, and in the shared DNS zone they may only
write names with their own prefix. The cloud workflows (plan, apply, drift, e2e-tunnel)
stay off until the repository variable CLOUD_ENVS_ENABLED is set
(runbook).
Modules: tofu/modules (each has a README). Environments: tofu/envs/README.md. Roles: ansible/roles.
| Component | Tested with | Supported |
|---|---|---|
| Python (tests and checks) | 3.12, 3.13 | 3.12, 3.13 |
| Managed hosts | Debian 13, Ubuntu 24.04 (x86_64) | Debian 13, Ubuntu 24.04 |
luminare.infra_edge |
v0.2.1 |
the tag pinned in ansible/requirements.yml |
luminare.gameserver |
v0.2.0 |
the tag pinned in ansible/requirements.yml |
| go-task | 3.54.0 | 3.54.0 |
| OpenTofu | 1.13.1 | 1.13.1 (required_version = ">= 1.11.0") |
| Docker Engine | 29.2.1 | versions that run privileged containers in the host cgroup namespace |
Every other tool and its checksum is in docs/toolchain.md.
lab,demoandshowcasehave only been validated, tested with mocked providers and planned offline; nothing has been applied to Proxmox VE, Hetzner Cloud or R2 yet, and the live tunnel test has not run.localruns a stand-in game server build (tests/fake-artifact/), on containers rather than machines. Ubuntu 24.04 is tested per role with Molecule only; arm64 is not tested.- Prometheus evaluates alerts but nothing delivers them yet (no Alertmanager, no Grafana).
- The repository ships no encrypted secrets and no
.sops.yamlrecipients: bring your own keys (docs/configuration.md).
- Installation · Configuration · Upgrade · Troubleshooting · Runbook · Toolchain
- Development:
task lint,task test,task tofuandtask moleculerun the CI checks;pre-commit installruns the quick ones before each commit. - Changelog and releases
(with
SHA256SUMSand a build provenance attestation) - Contributing · Code of conduct · Security · Support
- Project page: https://luminare.tech/open-source/infra-edge-lab/
Not affiliated with or endorsed by Cfx.re, Rockstar Games or Take-Two.
Apache-2.0. The licence covers the code only: the project name, logo, header images
and docs/brand/ are not licensed (see NOTICE).
a Luminare Development open-source project
