Devendra
RustLess Ansible, more daemon: config management over iroh
A very small subset of Ansible as an embeddable daemon. Devendra installs config files (podman quadlets, drop-ins, plain config), runs systemctl daemon-reload, and starts, stops, enables, disables and restarts systemd services, idempotently.
Desired state is authored in a small web UI on a controller (axum + minijinja + htmx) and distributed to agents over iroh 1.0 using iroh-docs document sync, so no SSH is needed beyond initial setup and NAT is not a problem.
Agents pull: they join the document from a ticket, receive their host's manifest and file bodies, converge the machine, and write a status report back into the same document. The controller only advances a host's generation when its desired state actually changed, so a no-op republish never triggers restarts.
Each host is a small TOML file of directories, files and services. Shared fragments can be included and overridden per host, and saving a fragment republishes every host that uses it.
Hand-configured machines can be adopted: the agent scans a directory such as /etc/containers/systemd and publishes what it finds as a proposal. Accept the files you want in the controller UI and from then on the host is managed.
The reconciler sits behind filesystem, systemd and content-source traits and is unit-tested against in-memory fakes, including the core property that applying twice makes the second pass a clean no-op.
HIGHLIGHTS
- Podman quadlets, drop-ins and plain config files
- daemon-reload only when a unit actually changed
- Restart/reload handlers fire only when config changed this pass
- No SSH after setup; iroh-docs sync gets through NAT
- Reusable include fragments with per-host overrides
- Adopt: point it at a hand-configured host, accept what it finds
- Agent shipped as a .deb for amd64 and arm64, with a systemd unit