Profiles bind a RAM-booted root image to overlay templates; assigning a machine allocates a node name and management IP, writes the per-MAC PXE entry with a per-node token and exports static leases for dnsmasq. Nodes pull rendered overlays (hosts, slurm.conf from inventory, gres.conf, SSH host key, munge key) through rollcall-overlay.service; the runtime refresh timer is the heartbeat. Adds the compute-debian13 image definition and a generic live-build root image script, CLI and web UI for profiles/assign. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
12 lines
571 B
Bash
Executable File
12 lines
571 B
Bash
Executable File
#!/bin/sh
|
|
# live-build chroot hook for the compute image
|
|
set -e
|
|
systemctl enable rollcall-overlay.service rollcall-overlay-runtime.timer
|
|
systemctl enable munge.service slurmd.service ssh.service
|
|
systemctl disable apt-daily.timer apt-daily-upgrade.timer 2>/dev/null || true
|
|
sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config
|
|
# host keys come from the overlay; do not let the package generate random ones first
|
|
rm -f /etc/ssh/ssh_host_*
|
|
install -d -m 0755 -o root -g root /var/spool/slurmd /var/log/slurm
|
|
echo rollcall > /etc/hostname
|