-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathslurm-joblog.conf.example
49 lines (40 loc) · 1.31 KB
/
slurm-joblog.conf.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
###############################################################################
# $Id$
###############################################################################
#
# SLURM Job log utility config file.
#
# Allows configuration of the following:
#
# SQLUSER : The Read-write username for the DB
# SQLPASS : Read-write password
# SQLROOTPASS : Root password (Needed for DB creation)
# JOBLOGFILE : Location of joblog file (empty if you don't want a logfile)
# SQLRWHOSTS : Array of all hosts from which to allow RW user access.
# SQLNETWORK : Restricted network for db (default = 192.168.%.%)
#
package conf;
use Genders;
$SQLUSER = "slurm";
$SQLPASS = "MyReadWritePassword";
$SQLNETWORK = "192.168.%.%";
# Root password needed for creation of SLURM tables
$SQLROOTPASS = "MyRootPassword";
# Attempt to autocreate DB if it doesn't exist
$AUTOCREATE = 1;
# Job log file. If no logfile, set to empty.
$JOBLOGFILE = "/var/log/slurm/joblog";
# Give rw access to slurm db from these hosts
@SQLRWHOSTS = get_rw_nodes ();
1;
sub get_rw_nodes
{
my $g = Genders->new ();
my @nodes = $g->getnodes ("mysqld");
push (@nodes, $g->getnodes ("primgmt"));
push (@nodes, $g->getnodes ("altmgmt"));
# Include altnames
push (@nodes, map { $g->getattrval ("altname", $_) } @nodes);
return (@nodes);
}
# vi: ts=4 sw=4