Puppet Class: slurm::resources

Defined in:
manifests/resources.pp

Summary

Manage SLURM resources using Puppet types

Overview



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
# File 'manifests/resources.pp', line 3

class slurm::resources {
  include slurm

  slurm_config { 'puppet':
    install_prefix => $slurm::install_prefix,
  }

  slurmdbd_conn_validator { 'puppet':
    ensure  => 'present',
    timeout => $slurm::slurmdbd_conn_validator_timeout,
  }

  $slurm::clusters.each |$name, $cluster| {
    slurm_cluster { $name: * => $cluster }
  }
  $slurm::qoses.each |$name, $qos| {
    slurm_qos { $name: * => $qos }
  }
  $slurm::reservations.each |$name, $reservation| {
    slurm_reservation { $name: * => $reservation }
  }
  $slurm::accounts.each |$name, $account| {
    slurm_account { $name: * => $account }
  }
  $slurm::users.each |$name, $user| {
    slurm_user { $name: * => $user }
  }
  $slurm::licenses.each |$name, $license| {
    slurm_license { $name: * => $license }
  }

  if $slurm::purge_qos {
    resources { 'slurm_qos': purge => true }
  }
}