Files
interzone/README.md
T
vvvomitandClaude Opus 5.5 c5c278952b Initial commit: interzone TUI for matrix-docker-ansible-deploy
Interactive wizard (Bubble Tea, Bubbles, Lip Gloss) that picks a homeserver,
opts into any MDAD component, writes the inventory and runs the playbook.
Supports in-country git, container registry, Docker, APT and PyPI mirrors
for installing during an internet blackout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 14:48:25 +03:30

2.9 KiB
Raw Blame History

interzone

A friendly terminal wizard for matrix-docker-ansible-deploy (MDAD). Pick a homeserver, tick the bridges, bots and services you want, and interzone writes the inventory and runs the playbook for you, with a live progress view.

It is built to keep working during a country-wide internet blackout: every download can come from mirrors inside the country.

Features

  • Any homeserver: Synapse, Continuwuity, Tuwunel, Conduit or Dendrite. Synapse-only components are greyed out for the others.

  • Everything MDAD offers: 82 components across clients, auth, storage, bridges, bots, monitoring, backups and calls, with search (/). Required settings are asked for; secrets are generated.

  • Blackout-ready. Each source can be redirected:

    What Default How it's used
    Playbook git https://itsjustadream.g0th.ir/spantaleev/matrix-docker-ansible-deploy git clone / git pull
    Ansible roles git https://itsjustadream.g0th.ir/ github.com URLs in requirements.yml are rewritten with git insteadOf, so the playbook stays unmodified
    Container images mechatok.g0th.ir/ matrix_container_global_registry_prefix_override (every image, from every registry)
    Docker Engine packages – docker_repo_url (mirror of download.docker.com/linux)
    OS packages (APT) – Debian/Ubuntu sources on the server are rewritten (with backups) before install
    PyPI – Installs Ansible into a private venv if it's missing

    ctrl+t on the Network screen tests every source.

  • Certificates that work offline: Let's Encrypt, a generated self-signed wildcard certificate, your own certificate, or no HTTPS.

  • Install locally or over SSH.

  • Remembers your answers in ~/.config/interzone/config.json (mode 0600). Re-run interzone to change anything.

Build

make            # static binary ./interzone

To build without internet, run go mod vendor while you still have access and build with go build -mod=vendor. The resulting binary is static and has no runtime dependencies besides git, ssh and Ansible (which interzone can install itself from a PyPI mirror).

Use

./interzone           # start the wizard
./interzone --reset   # forget saved answers
Key Action
enter / ↑↓ / tab move through fields
←→ / space choose / toggle
ctrl+n / ctrl+p next / previous step
ctrl+r reveal secrets
ctrl+s save answers
esc back

On the Review screen, enter deploys and s only writes the files and prints the ansible-playbook command to run later.

Files:

  • playbook: ~/.local/share/interzone/matrix-docker-ansible-deploy
  • generated inventory: <playbook>/inventory/
  • last deployment log: ~/.config/interzone/last-deploy.log
  • self-signed certificates: ~/.config/interzone/ssl/<domain>/