compute image: dbus for slurmd's systemd scope; controller slurm.conf sync timer
CI / agent (push) Successful in 3s
CI / site (push) Successful in 2s
CI / go (push) Failing after 29s

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Fable 5.1 committed 2026-10-27 02:12:08 +01:00
1 parent 7fe7c26e22
commit c81b498df1
4 files changed
+27

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
[Unit]
Description=rollcall: keep the local Slurm controller's slurm.conf in sync with the rendered profile
After=rollcall.service
[Service]
Type=oneshot
# PROFILE is the profile whose overlay carries slurm.conf
Environment=PROFILE=compute
ExecStart=/bin/sh -c 'set -e; new=$(/usr/local/bin/rollcall render "$PROFILE" etc/slurm/slurm.conf) || exit 0; \
if ! printf "%%s\n" "$new" | grep -v "^# rendered by rollcall" | cmp -s - <(grep -v "^# rendered by rollcall" /etc/slurm/slurm.conf 2>/dev/null); then \
printf "%%s\n" "$new" > /etc/slurm/slurm.conf.new && mv /etc/slurm/slurm.conf.new /etc/slurm/slurm.conf; \
systemctl try-restart slurmctld.service; echo "slurm.conf updated"; fi'