fix: fix slurmdbd setup

This commit is contained in:
2025-09-25 15:52:30 +02:00
parent bcff2e6c2f
commit c9624213ed
2 changed files with 12 additions and 15 deletions

View File

@@ -49,7 +49,7 @@ in {
automount.enable = true;
users = false;
opt = true;
work = true;
work = false;
data = true;
ceph = true;
};
@@ -78,7 +78,7 @@ in {
slurm.server = true;
slurm.slurmrestd = true;
slurm.mungeUid = 993;
slurm.dbdHost = "ekman-manage.obx.hs";
slurm.dbdHosts = "ekman-manage.obx.hs";
manageNode = true;
};
@@ -265,13 +265,16 @@ in {
'';
};
services.dnsmasq.enable = true;
services.dnsmasq.settings = {
domain = [ "hbx.hs" ];
domain = [ "cluster.local" ];
server = [
"8.8.8.8"
"/obx.hs/100.100.100.100" # headscale dns
];
address = [ ];
address = [
"/slurmctld.cluster.local/127.0.0.1"
];
srv-host = "_slurmctld._tcp.cluster.local,slurmctld.cluster.local,6817,0,5";
};
# Use nvd to get package diff before apply
@@ -325,7 +328,7 @@ in {
useRoutingFeatures = "both"; # for exit-node usage
extraUpFlags = [
"--login-server=https://headscale.svc.oceanbox.io"
# "--accept-dns=true" # see dnsmasq
"--accept-dns=true" # see dnsmasq
"--advertise-exit-node"
"--advertise-routes=172.16.239.0/24,172.16.238.0/24"
];