← All work

Course project · Platforms I · Since Sep 2026

KitSalud: an Offline Primary-Care Health Kit

A field kit for health brigades that works without Internet: a KVM mini PC, a MikroTik switch and a Wi-Fi AP, automated with 33 Ansible roles, with a segmented dual-stack network, central identity, health apps and observability.

The project

A health brigade deploys the kit on site to deliver clinical, administrative and community services with no Internet at all. It is one mini PC running Ubuntu with KVM, a MikroTik CCR2004 used as a layer 2 switch and a Wi-Fi access point, hosting two virtual machines: one clinical, one for the community.

Everything is configured by 33 Ansible roles with secrets in ansible-vault: two VLANs plus a server network, an nftables default-deny firewall for IPv4 and IPv6, Kea DHCPv4 and stateless DHCPv6, radvd, BIND9 for the internal zone, Chrony, an internal CA and a captive portal. Samba AD is the single identity for SMB shares, Grafana and the Flask apps over LDAPS.

The apps run with Docker Compose behind Caddy: DHIS2 for patients, Kiwix for an offline health library, Jellyfin for audio and video, and a pre-registration form that can only insert into the clinical database. Restic pulls encrypted weekly backups to a USB disk, Prometheus, Grafana and rsyslog keep it observable, and 13 scripted acceptance tests prove each requirement.

Highlights

  1. 0133 Ansible roles, secrets in ansible-vault, rebuilt from scratch on a virtual lab before touching the kit
  2. 02Dual-stack nftables firewall that denies by default, with a captive portal for the community network
  3. 03Samba AD as the single identity for files, dashboards and apps
  4. 04Encrypted pull-model backups with restic and a documented restore
  5. 0513 scripted acceptance tests, each saving its own evidence