Browse Source

Flush NSS DBs after ldap sync

main
Dustin Frisch 6 months ago
parent
commit
1422ac6c00
No known key found for this signature in database GPG Key ID: B4C3BF012D9B26BE
  1. 4
      docs/content/first_steps.md
  2. 6
      machines/manager/ldap.nix
  3. 14
      shared/slurm.nix

4
docs/content/first_steps.md

@ -35,10 +35,10 @@ Um sich mit der Nutzung des Clusters vertraut zu machen, können Sie einen einfa
* Erstellen Sie eine Textdatei namens testjob.sh auf Ihrem Computer.
* Öffnen Sie die Datei in einem Texteditor und fügen Sie den folgenden Inhalt ein:
```bash
#!/bin/bash
#!/usr/bin/env bash
#SBATCH --job-name=testjob
#SBATCH --output=testjob.out
#SBATCH --partition=standard
#SBATCH --partition=all
#SBATCH --ntasks=1
#SBATCH --time=00:10:00

6
machines/manager/ldap.nix

@ -149,6 +149,12 @@ in
systemd.services."ldap-sync" = {
script = "${ldap-sync}/bin/ldap-sync";
startAt = "hourly";
# Flush caches
postStop = ''
${config.services.nscd.package}/bin/nscd --invalidate=group
${config.services.nscd.package}/bin/nscd --invalidate=passwd
'';
};
networking.firewall.allowedTCPPorts = [

14
shared/slurm.nix

@ -2,6 +2,18 @@
with lib;
let
nodeConfig = concatStringsSep " " (mapAttrsToList
(key: value: "${key}=${toString value}")
{
CPUs = 64;
Boards = 1;
SocketsPerBoard = 4;
CoresPerSocket = 16;
ThreadsPerCore = 1;
});
in
{
services.slurm = {
clusterName = "mogli";
@ -9,7 +21,7 @@ with lib;
controlMachine = "manager";
nodeName = map
(node: "${node.config.networking.hostName} CPUs=32")
(node: "${node.config.networking.hostName} ${nodeConfig}")
(filter # Filter all nodes that have a tag "node" being a compute node
(node: node.config.hpc.node.enable)
(attrValues nodes));

Loading…
Cancel
Save