summary refs log tree commit diff
path: root/nixos/modules/services/computing
diff options
context:
space:
mode:
authorMarkus Kowalewski <markus.kowalewski@fysik.su.se>2018-05-24 11:10:20 +0200
committerMarkus Kowalewski <markus.kowalewski@fysik.su.se>2018-05-24 16:59:48 +0200
commitfb7428c50613a0f9e0d8ebc714abebee4e5d5cd2 (patch)
tree65ae071f59ae1b4ab963c032c09c50a9b7d33037 /nixos/modules/services/computing
parent2a14e898bcf5ed9e6647f3b60c0444adba18a9ce (diff)
downloadnixlib-fb7428c50613a0f9e0d8ebc714abebee4e5d5cd2.tar
nixlib-fb7428c50613a0f9e0d8ebc714abebee4e5d5cd2.tar.gz
nixlib-fb7428c50613a0f9e0d8ebc714abebee4e5d5cd2.tar.bz2
nixlib-fb7428c50613a0f9e0d8ebc714abebee4e5d5cd2.tar.lz
nixlib-fb7428c50613a0f9e0d8ebc714abebee4e5d5cd2.tar.xz
nixlib-fb7428c50613a0f9e0d8ebc714abebee4e5d5cd2.tar.zst
nixlib-fb7428c50613a0f9e0d8ebc714abebee4e5d5cd2.zip
nixos/slurm: enable munge by default, added note to slurm description
Diffstat (limited to 'nixos/modules/services/computing')
-rw-r--r--nixos/modules/services/computing/slurm/slurm.nix16
1 files changed, 13 insertions, 3 deletions
diff --git a/nixos/modules/services/computing/slurm/slurm.nix b/nixos/modules/services/computing/slurm/slurm.nix
index 314cc3f61ecc..25df5030162c 100644
--- a/nixos/modules/services/computing/slurm/slurm.nix
+++ b/nixos/modules/services/computing/slurm/slurm.nix
@@ -32,12 +32,20 @@ in
     services.slurm = {
 
       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 = {
-        enable = mkEnableOption "slurm rlient daemon";
+        enable = mkEnableOption "slurm client daemon";
 
       };
 
@@ -161,6 +169,8 @@ in
 
     environment.systemPackages = [ wrappedSlurm ];
 
+    services.munge.enable = mkDefault true;
+
     systemd.services.slurmd = mkIf (cfg.client.enable) {
       path = with pkgs; [ wrappedSlurm coreutils ]
         ++ lib.optional cfg.enableSrunX11 slurm-spank-x11;