Menu entries, form fields, options, checkboxes, list rows, tabs and the key hints all take clicks; the wheel scrolls. -no-mouse leaves the mouse to the terminal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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-deploygit clone/git pullAnsible roles git https://itsjustadream.g0th.ir/github.comURLs inrequirements.ymlare rewritten with gitinsteadOf, so the playbook stays unmodifiedContainer images mechatok.g0th.ir/matrix_container_global_registry_prefix_override(every image, from every registry)Docker Engine packages https://infamous.g0th.ir/docker(blackout mode)docker_repo_url; on RHEL-family servers interzone writesdocker-ce.repoitself, since Docker's own file always names download.docker.comOS packages https://infamous.g0th.ir(blackout mode)The server's APT, dnf or pacman sources are pointed at the mirror before install (with backups), for each repository the mirror actually carries PyPI https://infamous.g0th.ir/pypi/simple(blackout mode)Installs Ansible into a private venv if it's missing ctrl+ton the Network screen tests every source. Mirrors are checked for content, not just reachability: OS mirrors must have security or update indexes less than two weeks old (a month for AlmaLinux, Rocky and CentOS Stream), Docker mirrors their repository indexes, and PyPI mirrors must listansible-core.Distros in blackout mode. Interzone reads the server's distro and release and checks that the chosen mirrors carry them before deploying. The OS package step handles each family the playbook supports:
The defaults point at infamous.g0th.ir, an interzone-mirror that carries what interzone and the playbook install on Debian, Ubuntu (x86 and ARM), Raspberry Pi OS and Arch. On RHEL-family and Fedora servers, choose one of the public mirrors below instead.
Server OS packages Docker In-country mirror? Debian /debian,/debian-securityfrom the Docker mirror ✓ Ubuntu (x86) /ubuntufrom the Docker mirror ✓ Ubuntu (ARM) /ubuntu-portsfrom the Docker mirror interzone-mirror only Raspberry Pi OS 32-bit /raspbianfrom the Docker mirror interzone-mirror only AlmaLinux /almalinux,/epelcentoson the Docker mirror✓ Rocky Linux /rocky,/epelcentoson the Docker mirrornone known for Rocky; EPEL ✓ CentOS Stream /centos-stream,/epelcentoson the Docker mirrornone known for CentOS; EPEL ✓ Fedora /fedora/linuxfedoraon the Docker mirrornone known Arch Linux /archlinux(first in pacman's mirror list)from Arch's own repositories ✓ RHEL can't be mirrored (Red Hat's CDN) rhelon the Docker mirror– Repositories the mirror doesn't carry keep their original sources and are reported as warnings; on dnf, unreachable repositories are skipped instead of failing the run.
Known mirrors in Iran (all checked October 2026);
interzone mirrorsre-tests them:What Mirror Carries All three infamous.g0th.ir (default), /docker,/pypi/simpleUbuntu, Ubuntu ARM, Debian, Raspbian, Arch; Docker for Debian, Ubuntu, Raspbian OS packages mirror.hostbaran.com Ubuntu, Debian, AlmaLinux, EPEL, Arch repo.abrha.net Ubuntu, Debian, AlmaLinux, EPEL mirror.arvancloud.ir Ubuntu, Debian, Arch mirror.iranserver.com Ubuntu, Debian, AlmaLinux mirror.mobinhost.com Ubuntu, Debian, EPEL, Arch mirror.famaserver.com Ubuntu, AlmaLinux, EPEL, Arch Docker Engine mirror.cdn.ir/repository/docker/linux Debian, Ubuntu, Raspbian, CentOS/Alma/Rocky, RHEL, Fedora repo.abrha.net/docker Debian, Ubuntu PyPI package-mirror.liara.ir/repository/pypi/simple, pypi.iranserver.com/repository/pypi/simple, mirror-pypi.runflare.com/simple, mirror.abrha.net/repository/pypi/simple, mirror2.chabokan.net/pypi/simple Tests:
# every known mirror still carries what it should INTERZONE_MIRROR_TESTS=1 go test ./internal/deploy -run KnownMirrors -v # the OS package step against Debian, Ubuntu, AlmaLinux 9/10, Rocky, # CentOS Stream, Fedora and Arch containers (needs Docker and Ansible) INTERZONE_CONTAINER_TESTS=1 go test ./internal/deploy -run PlayContainers -v -timeout 30m -
Checks before it touches anything. The Review screen logs into the server and checks root access, OS, CPU, Python, memory, disk and ports 80/443/8448, then resolves every DNS record the setup needs and compares it with the server's addresses.
-
Checks after deploying. The playbook's self-check runs at the end and lists which services answer and which don't.
-
Checks images before installing. The install asks the playbook which container images the enabled services use and checks each one in its registry (or your mirror) for the server's CPU, so a missing image is reported up front instead of halfway through.
-
Manage an existing server: update, run the self-check, restart, add users (Synapse/Dendrite), close registration (Conduit, Continuwuity, Tuwunel), back up the Postgres database to this computer, and read any service's logs. Also:
- Update preview: the new playbook commits and the component versions they change, before installing anything.
- Rollback: every successful install records its playbook commit and answers (the last 10). Rolling back backs up the database, checks that commit out and reinstalls; the playbook stays held there until the next update.
- Restore any database dump on this computer: services stop, the current database is dumped first, then replaced.
- Scheduled backups: a systemd timer on the server dumps the database
by itself (
/matrix/interzone-backups, keeping the newest N); download them for Restore. - Users (Synapse): list accounts, reset passwords, grant or remove admin rights, deactivate and reactivate, through the admin API from inside the Synapse container. Nothing needs to be exposed publicly.
- Dashboard: load, memory, disks, the backup timer, certificate expiry for every hostname, and each container's state, CPU and memory.
- Fine-tune: every variable of every playbook role, the playbook's
own and the ones installed from
requirements.yml(about 100 roles and 8,600 settings), with its documentation, the role's default, the value the playbook'sgroup_varssets instead, and yours. The roles in your setup are listed first, and/searches every role at once. Changes are written intovars.ymland applied on the next update. - Move to another server: stops and disables the old server,
streams
/matrixto the new one through this computer, then installs there (following the playbook's migration guide). - Several servers: each has its own answers and playbook copy;
switch on the Servers screen (
son Welcome) or withinterzone servers use NAME. - Self-update from the newest release, checked against its
SHA256SUMS.
-
Fully offline installs with
interzone bundle(see below). -
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(mode0600; other servers inservers/NAME.json). 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 (or the Manage menu, once installed)
./interzone --reset # forget saved answers
./interzone -no-mouse # leave the mouse to the terminal
The menu on the left shows where you are: the setup steps, the Manage
screens (with the action running, if any) and your servers. The section
you're in is open and the others are folded; ctrl+b folds the whole menu
to a rail of icons, and terminals narrower than 100 columns always get the
rail.
| 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 |
ctrl+b |
fold or unfold the menu on the left |
esc |
back |
Everything also works with the mouse: click a menu entry, a field, an option,
a checkbox or a key in the bar at the bottom. In lists, the first click selects
a row and a second click opens it. The wheel scrolls. While interzone has the
mouse, hold shift to select text in most terminals, or start it with
-no-mouse.
On the Review screen, enter deploys and s only writes the files and prints
the ansible-playbook command to run later.
Without the wizard
interzone apply # deploy with saved answers; runs the checks first
interzone apply --save-only # only write the inventory
interzone apply --config answers.json --force --quiet
interzone check # test mirrors, the server and DNS
interzone mirrors # test every known in-country mirror and what it carries
interzone apply --latest # update a playbook held back by a rollback
interzone changes # what an update would bring
interzone images # can every container image be pulled?
interzone status # load, disks, certificates, containers
interzone restore # list backups; 'restore FILE' restores one
interzone rollback --list # recorded deploys; 'rollback N' goes back to one
interzone servers # saved servers; 'servers use NAME', 'servers rm NAME'
interzone self-update # install the newest release
INTERZONE_SERVER=work interzone apply # any command, for another saved server
apply exits non-zero if a check fails (unless --force), if the run
fails, or if the self-check finds a problem. Answers files are the
config.json the wizard writes; missing secrets are generated and saved
back into the file.
Offline bundle
For a machine with no internet at all, make a bundle somewhere that has it:
interzone bundle -o interzone-bundle.tar.gz
It holds the playbook with every Ansible role already installed, the Python packages for Ansible (built for the bundling machine's OS, CPU and Python version), and the interzone binary. Copy it over, then:
tar xzf interzone-bundle.tar.gz
./interzone-bundle/interzone unbundle interzone-bundle
./interzone-bundle/interzone
Deploys then use the bundled playbook and roles when the git mirror is unreachable, and install Ansible from the bundled packages. Container images are not included: point interzone at a registry mirror inside your network.
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>/ - database backups:
~/.local/share/interzone/backups/ - deploy history for rollback:
~/.config/interzone/history/<server>/ - other servers: answers in
~/.config/interzone/servers/, playbooks in~/.local/share/interzone/servers/<name>/