Auto-update
updates¶
every piece of code that might be of interest to either the infra (or the nodes, btw) is kept in a git repository
r2lab-embeddedthis contains
services/run-updates.shand related systemd unit files (service, timer), that run every 5 minutes on faraday, r2lab and r2labapi (and on distrait, forr2lab-embeddedonly)for each git repo listed for the host in
services/hosts/, it follows the upstream branch, and when that has changed it runs the repo’s owndeploy/update.sh, which builds and restarts what needs to beeach of these repos also keeps its systemd unit files in its
deploy/folder, installed withsystemctl link
troubleshooting¶
To see what the latest runs have done, log into the box in question, and
journalctl -u run-updates.service --since '10 minute ago'where are the repos cloned¶
to be written in plain english
always under
/rootexcept forrhubarbethat is under/opt/rhubarbe- it was thought at the time that regular/slice users could maybe need to read that; it’s not the case after all, but the choice remainsas far as rhubarbe again, the services run within a uv venv that is updated by the update script; regular users use the rhubarbe that is `pip install’ed