mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 19:56:53 +00:00
resource.yml.j2 renders `runtime: nvidia` for any service that declares `gpu: true`, gated a second time on the host carrying /dev/nvidia0 so a CPU-only host never gets a runtime its daemon cannot resolve. The device fact is probed in daemon_config.yml next to the kata and gVisor shims, and daemon.json.j2 lists nvidia alongside them. nvidia stays out of SANDBOX_RUNTIME: it passes a device through, it does not isolate. nvidia.yml drops rival apt sources for libnvidia-container before writing its own. The other order leaves two sources with different Signed-By keys for one URL, which makes apt refuse the entire source list. test_gpu_runtime.py covers both polarities and the missing device fact; the latter caught `x.stat.exists | default(false)`, which raises on the undefined object before the filter runs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>