From 100ba9e05c756a304c66c18f5341ea254fccf9c2 Mon Sep 17 00:00:00 2001 From: vvvomit Date: Fri, 30 Oct 2026 01:10:24 +0330 Subject: [PATCH] Bundled kubo lands in the cache every server shares; README covers IPFS Unbundle copied the IPFS daemon next to the playbook, which for a second server isn't where kuboBinary looks. Co-Authored-By: Claude Opus 5.5 --- README.md | 31 +++++++++++++++++++++++++++++-- internal/deploy/bundle.go | 4 ++-- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d364b43..60e1319 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,8 @@ 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. +every download can come from mirrors inside the country, or from other +interzone servers over IPFS.

interzone's welcome screen

@@ -137,6 +138,30 @@ or the [Telegram group](https://t.me/+6UwIu9F4gZQxNjM0). interzone switches to the first known mirror that has everything, says so in the log and saves it on the Server step. + **IPFS: from interzone's swarm.** The third network situation on the + Server step fetches everything (playbook, roles, OS and Docker packages, + PyPI and every container image) from other servers in interzone's + private IPFS swarm, so a server can be set up or upgraded while the + mirrors above are unreachable, as long as it can reach one peer that has + the files. Before the deploy, interzone installs the IPFS daemon (kubo) + on the server as the `interzone-ipfs` service, joins the swarm, finds + the newest publish and checks its signature, then serves its images as + a local registry on the server. Everything the run downloads goes through + the server's own IPFS gateway (an SSH forward reaches it from your + computer), and the playbook is held at the publish's commit, so the roles + match the images. + + The Server step asks whether to **share** what the server downloaded with + other servers, with no answer preselected. Sharing keeps the daemon + running after the deploy and listening on TCP 4001 (open it in your + firewall), and lets the swarm's members see that the server holds Matrix + software. Without sharing, the daemon stops after each run. + + The swarm is private: its key ships with interzone, which keeps the + public IPFS network out but isn't a secret. Its entry node is at + infamous.g0th.ir (TCP 4001, or WebSocket on yeule.g0th.ir:443). The + IPFS daemon comes from interzone's mirror, GitHub or an offline bundle. + The defaults point at infamous.g0th.ir, an [interzone-mirror](https://itsjustadream.g0th.ir/vvvomit/interzone-mirror) that carries what interzone and the playbook install on Debian, Ubuntu @@ -525,7 +550,9 @@ tar xzf interzone-bundle.tar.gz 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. +are not included: point interzone at a registry mirror inside your network, +or pick IPFS on the Server step (a bundle made with IPFS on carries the IPFS +daemon for both x86 and ARM servers). Files: diff --git a/internal/deploy/bundle.go b/internal/deploy/bundle.go index c016c7b..e4419df 100644 --- a/internal/deploy/bundle.go +++ b/internal/deploy/bundle.go @@ -337,8 +337,8 @@ func Unbundle(src, playbookDir string, log func(string)) (*BundleInfo, error) { } log("Python packages installed in " + dst) } - if d := filepath.Join(root, "ipfs"); exists(d) { - if err := copyTree(d, filepath.Join(dataDirFor(playbookDir), "ipfs")); err != nil { + if d := filepath.Join(root, "ipfs"); exists(d) { // kuboBinary's cache, shared by every server + if err := copyTree(d, filepath.Join(dataDir(), "ipfs")); err != nil { return nil, err } log("IPFS daemon kept for the IPFS source")