Consigliere on Unraid
Unraid is not Debian: no apt, no systemd, and a root filesystem that lives in RAM and resets at every
reboot. So the normal bootstrap.sh cannot run here, and nothing is installed on the server. Instead:
- one container image (
consigliere-reconcile) carries Ansible, git, sops, age and the Docker CLI; - one long-lived container runs
reconcile.shevery ~20 minutes (RECONCILE_INTERVAL,RECONCILE_JITTER), using the host’s Docker socket; - its state lives in a normal appdata folder (
/mnt/user/appdata/consigliere), which persists.
restart: always brings the container back after a reboot, so there is no cron entry and no edit to
/boot/config/go. That is on purpose: Unraid 8 changes the base OS to Fedora (Universal Blue’s uCore) and
the announcement says nothing about go, systemd or which paths persist. A container needs only a Docker
socket and a folder.
What runs
Section titled “What runs”hosts/site.yml (run with RECONCILE_RUNTIME=container) runs only what the host’s tags select (feat: [arkeep] is the Arkeep agent,
prop: [beszel] the Beszel agent, util: [restic] a restic REST server whose data lives on a user share), and only container-based roles are suitable. These are NOT run here, on
purpose: baseline, tailscale, sops, docker and firewall (Unraid manages its own packages, Docker and
network; the Tailscale plugin joins the tailnet). Roles that use systemd or apt (for example
certwarden_agent, restic_mirror) do not work on Unraid. The docker guard (nftables) is not applied either:
keep ports unpublished or bound to the Tailscale address.
Set up (as root on the server)
Section titled “Set up (as root on the server)”-
Install and connect Unraid’s Tailscale plugin (use a tagged auth key). Its CLI and socket are read by the container to learn the host’s tailnet name, which must equal the key in
hosts.yml. -
Add the host to your fleet’s
config/inventory/hosts.yml(feat: [arkeep],type: unraid) and push. -
Run the same
bootstrap.shas on any other host: it recognises Unraid and hands over to this setup (CONSIGLIERE_PROFILE=unraidforces it). Or run this one directly:curl -fsSLO https://raw.githubusercontent.com/almadon/Consigliere/main/hosts/bootstrap/unraid/bootstrap-unraid.shFRAMEWORK_REPO_URL=https://github.com/almadon/Consigliere.git \FLEET_CONFIG_REPO_URL=git@github.com:you/fleet.git \bash bootstrap-unraid.shIt builds the image, gives the host a read-only deploy key and its own age key (it prints both and waits for you), does a check-only first run, and asks before starting the container.
-
On your admin machine:
scripts/access.sh add-host <name> <age-public-key>,sync, commit, push.
Day to day
Section titled “Day to day”docker logs -f consigliere-reconcile # what it is doingdocker restart consigliere-reconcile # run nowdocker run --rm -it ... -e RECONCILE_MODE=check consigliere-reconcile once # report-only (see bootstrap-unraid.sh)The framework and fleet repos update themselves on every run. The image changes rarely: to rebuild it (new
Ansible, a new sops pin), re-run bootstrap-unraid.sh; it keeps your keys and settings.
Host-only settings go in /mnt/user/appdata/consigliere/vars.yml (directories for compose files and data,
firewall_manage: false); they are passed to Ansible as extra variables.
- A container started by the roles shows up in Unraid’s Docker tab but is managed by Ansible: change it in the fleet repo, not in the Unraid UI.
restart: unless-stoppedcontainers may not return after an Unraid reboot (shutdown counts as a stop), so the reconciler itself uses--restart always. Containers that the roles start follow the role’s own policy.- A container with a name a role wants (for example an old
arkeep-agent) blocks the first run with instructions;docker_adopt_existing: truein the host’s vars removes it (its volumes are kept). - Untested on Unraid 8. The design depends only on Docker, the Tailscale CLI/socket and a persistent folder.
Run summaries to the log collector
Section titled “Run summaries to the log collector”Unraid has no journal for the log collector to read, so the end-of-run reporter (hosts/bootstrap/reconcile-report.sh) can send each run’s PLAY RECAP line as one syslog message (TCP, RFC 3164, program fleet-reconcile, host name = the server’s own name, which the container shares through --uts host).
Turn it on with one line in the host’s reconcile.env (next to the work directory): RECONCILE_SYSLOG=<collector host>:<port>, for example RECONCILE_SYSLOG=192.0.2.10:1514 (Liaison’s Unraid syslog listener). The file is re-read at every run, so no container restart is needed.
A run that dies before any recap is sent as failed=1 with the exit status; check-only runs send nothing; with no setting nothing is sent. In Loki it is {host_name="spire", unit="fleet-reconcile"}, the same label pair the systemd hosts produce, so cmdr shows the host’s last run.