fix: fix independent slurmdbd setup

This commit is contained in:
Jonas Juselius
2025-10-19 14:45:32 +02:00
parent 4b80478ec8
commit 7d5a65e344
4 changed files with 21 additions and 21 deletions

View File

@@ -85,6 +85,18 @@ let
};
slurmServer = {
services.slurm = {
server.enable = true;
# extraConfig = ''
# MailDomain=itpartner.no
# MailProg=${pkgs.ssmtp}/bin/ssmtp
# '';
};
networking.firewall.allowedTCPPorts = [ 6817 ];
};
dbdServer = {
services.mysql = {
enable = true;
package = pkgs.mariadb;
@@ -101,24 +113,14 @@ let
];
};
services.slurm = {
server.enable = true;
# extraConfig = ''
# MailDomain=itpartner.no
# MailProg=${pkgs.ssmtp}/bin/ssmtp
# '';
};
networking.firewall.allowedTCPPorts = [ 6817 ];
};
dbdServer = {
services.slurm.dbdserver = {
enable = true;
dbdHost = cfg.dbdHost;
extraConfig = cfg.dbdExtraConfig;
# storagePass = cfg.storagePass;
};
networking.firewall.allowedTCPPorts = [ 6819 ];
};
slurmClient = {
@@ -205,7 +207,7 @@ in
clusterName = mkOption {
type = types.str;
default = null;
default = "default";
};
pkey = mkOption {
@@ -215,7 +217,7 @@ in
controlMachine = mkOption {
type = types.str;
default = null;
default = "localhost";
};
dbdHost = mkOption {
@@ -270,7 +272,7 @@ in
mailDomain = mkOption {
type = types.str;
default = null;
default = "local";
};
slurmKey = lib.mkOption {

View File

@@ -4,10 +4,10 @@
master=""
node="flannel.service"
nodes="@nodes@"
master_node="@master@"
# nodes=$(kubectl get nodes --no-headers | cut -d' ' -f1)
# master_node=$(echo $nodes | cut -d' ' -f1)
#nodes="@nodes@"
#master_node="@master@"
nodes=$(kubectl get nodes --no-headers | cut -d' ' -f1)
master_node=$(echo $nodes | cut -d' ' -f1)
echo "$master_node: systemctl restart $master"
sudo systemctl restart $master

View File

@@ -1,2 +0,0 @@
''
''