Defined Type: slurm::node

Defined in:
manifests/node.pp

Summary

Manage SLURM node configuration

Overview

Parameters:

  • node_name (Any) (defaults to: $name)
  • node_hostname (Any) (defaults to: undef)
  • node_addr (Any) (defaults to: undef)
  • bcast_addr (Any) (defaults to: undef)
  • boards (Any) (defaults to: undef)
  • core_spec_count (Any) (defaults to: undef)
  • cores_per_socket (Any) (defaults to: undef)
  • cpu_bind (Any) (defaults to: undef)
  • cpus (Any) (defaults to: undef)
  • cpu_spec_list (Any) (defaults to: undef)
  • features (Any) (defaults to: undef)
  • gres (Any) (defaults to: undef)
  • mem_spec_limit (Any) (defaults to: undef)
  • port (Any) (defaults to: undef)
  • real_memory (Any) (defaults to: undef)
  • reason (Any) (defaults to: undef)
  • sockets (Any) (defaults to: undef)
  • sockets_per_board (Any) (defaults to: undef)
  • state (Slurm::NodeState) (defaults to: 'UNKNOWN')
  • threads_per_core (Any) (defaults to: undef)
  • tmp_disk (Optional[Integer]) (defaults to: undef)
  • tres_weights (Any) (defaults to: undef)
  • weight (Optional[Integer]) (defaults to: undef)
  • target (Any) (defaults to: 'slurm.conf')
  • order (Any) (defaults to: '90')


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,
  }

}