nixos/slurm: enable munge by default, added note to slurm description
This commit is contained in:
parent
2a14e898bc
commit
fb7428c506
@ -32,12 +32,20 @@ in
|
|||||||
services.slurm = {
|
services.slurm = {
|
||||||
|
|
||||||
server = {
|
server = {
|
||||||
enable = mkEnableOption "slurm control daemon";
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Wether to enable the slurm control daemon.
|
||||||
|
Note that the standard authentication method is "munge".
|
||||||
|
The "munge" service needs to be provided with a password file in order for
|
||||||
|
slurm to work properly (see <literal>services.munge.password<literal>).
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
client = {
|
client = {
|
||||||
enable = mkEnableOption "slurm rlient daemon";
|
enable = mkEnableOption "slurm client daemon";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -161,6 +169,8 @@ in
|
|||||||
|
|
||||||
environment.systemPackages = [ wrappedSlurm ];
|
environment.systemPackages = [ wrappedSlurm ];
|
||||||
|
|
||||||
|
services.munge.enable = mkDefault true;
|
||||||
|
|
||||||
systemd.services.slurmd = mkIf (cfg.client.enable) {
|
systemd.services.slurmd = mkIf (cfg.client.enable) {
|
||||||
path = with pkgs; [ wrappedSlurm coreutils ]
|
path = with pkgs; [ wrappedSlurm coreutils ]
|
||||||
++ lib.optional cfg.enableSrunX11 slurm-spank-x11;
|
++ lib.optional cfg.enableSrunX11 slurm-spank-x11;
|
||||||
|
@ -20,7 +20,6 @@ in {
|
|||||||
# TODO slrumd port and slurmctld port should be configurations and
|
# TODO slrumd port and slurmctld port should be configurations and
|
||||||
# automatically allowed by the firewall.
|
# automatically allowed by the firewall.
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
services.munge.enable = true;
|
|
||||||
services.slurm = slurmconfig;
|
services.slurm = slurmconfig;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
@ -28,7 +27,6 @@ in {
|
|||||||
{ config, pkgs, ...}:
|
{ config, pkgs, ...}:
|
||||||
{
|
{
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
services.munge.enable = true;
|
|
||||||
services.slurm = {
|
services.slurm = {
|
||||||
server.enable = true;
|
server.enable = true;
|
||||||
} // slurmconfig;
|
} // slurmconfig;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user