Defined Type: slurm::down_node

Defined in:
manifests/down_node.pp

Summary

Manage SLURM down node configuration

Overview

Parameters:

  • down_nodes (String) (defaults to: $name)
  • reason (Optional[String]) (defaults to: undef)
  • state (Slurm::DownNodeState) (defaults to: 'UNKNOWN')
  • target (String) (defaults to: 'slurm.conf')
  • order (Any) (defaults to: '75')


12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'manifests/down_node.pp', line 12

define slurm::down_node (
  String $down_nodes          = $name,
  Optional[String] $reason    = undef,
  Slurm::DownNodeState $state = 'UNKNOWN',
  String $target              = 'slurm.conf',
  $order                      = '75',
) {

  include ::slurm

  $content = "DownNodes=${down_nodes} State=${state} Reason=\"${reason}\"\n"

  concat::fragment { "${target}-downnode-${name}":
    target  => $target,
    content => $content,
    order   => $order,
  }

}