31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# File 'manifests/node.pp', line 31
define slurm::node (
$node_name = $name,
$node_hostname = undef,
$node_addr = undef,
$bcast_addr = undef,
$boards = undef,
$core_spec_count = undef,
$cores_per_socket = undef,
$cpu_bind = undef,
$cpus = undef,
$cpu_spec_list = undef,
$features = undef,
$gres = undef,
$mem_spec_limit = undef,
$port = undef,
$real_memory = undef,
$reason = undef,
$sockets = undef,
$sockets_per_board = undef,
Slurm::NodeState $state = 'UNKNOWN',
$threads_per_core = undef,
Optional[Integer] $tmp_disk = undef,
$tres_weights = undef,
Optional[Integer] $weight = undef,
$target = 'slurm.conf',
$order = '90',
) {
include ::slurm
$conf_values = {
'NodeName' => $node_name,
'NodeHostname' => $node_hostname,
'NodeAddr' => $node_addr,
'BcastAddr' => $bcast_addr,
'Boards' => $boards,
'CoreSpecCount' => $core_spec_count,
'CoresPerSocket' => $cores_per_socket,
'CpuBind' => $cpu_bind,
'CPUs' => $cpus,
'CpuSpecList' => $cpu_spec_list,
'Features' => $features,
'Gres' => $gres,
'MemSpecLimit' => $mem_spec_limit,
'Port' => $port,
'RealMemory' => $real_memory,
'Reason' => $reason,
'Sockets' => $sockets,
'SocketsPerBoard' => $sockets_per_board,
'State' => $state,
'ThreadsPerCore' => $threads_per_core,
'TmpDisk' => $tmp_disk,
'TRESWeights' => $tres_weights,
'Weight' => $weight,
}
concat::fragment { "${target}-node-${name}":
target => $target,
content => template($::slurm::node_template),
order => $order,
}
}
|