fix: fix slurmdbd setup
This commit is contained in:
@@ -25,6 +25,7 @@ let
|
||||
extraConfig = ''
|
||||
# AccountingStorageType=accounting_storage/none
|
||||
AccountingStorageType=accounting_storage/slurmdbd
|
||||
AccountingStorageExternalHost=${cfg.dbdHosts}
|
||||
JobAcctGatherType=jobacct_gather/linux
|
||||
MailDomain=${cfg.mailDomain}
|
||||
MailProg=/run/wrappers/bin/sendmail
|
||||
@@ -65,7 +66,7 @@ let
|
||||
# '';
|
||||
dbdserver = {
|
||||
enable = true;
|
||||
dbdHost = cfg.dbdHost;
|
||||
dbdHost = cfg.controlMachine;
|
||||
# storagePass = cfg.storagePass;
|
||||
};
|
||||
};
|
||||
@@ -120,13 +121,6 @@ let
|
||||
|
||||
|
||||
slurmrestd = {
|
||||
services.dnsmasq.enable = true;
|
||||
services.dnsmasq.settings = {
|
||||
domain = [ "cluster.local" ];
|
||||
address = [ "/slurmctld.cluster.local/127.0.0.1" ];
|
||||
srv-host= "_slurmctld._tcp.cluster.local,slurmctld.cluster.local,6817,0,5";
|
||||
};
|
||||
|
||||
systemd.services.slurmrestd = {
|
||||
description = "Slurm REST API service";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
@@ -182,7 +176,7 @@ in
|
||||
default = null;
|
||||
};
|
||||
|
||||
dbdHost = mkOption {
|
||||
dbdHosts = mkOption {
|
||||
type = types.str;
|
||||
default = null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user