Puppet Class: slurm::slurmdbd::config

Defined in:
manifests/slurmdbd/config.pp

Overview



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
# File 'manifests/slurmdbd/config.pp', line 2

class slurm::slurmdbd::config {
  file { 'slurmdbd-ArchiveDir':
    ensure => 'directory',
    path   => $slurm::slurmdbd_archive_dir,
    owner  => $slurm::slurm_user,
    group  => $slurm::slurm_user_group,
    mode   => '0700',
  }

  if $slurm::slurmdbd_archive_dir_nfs_device {
    exec { 'mkdir-slurmdbd-ArchiveDir':
      path    => '/bin:/usr/bin',
      command => "mkdir -p ${slurm::slurmdbd_archive_dir}",
      creates => $slurm::slurmdbd_archive_dir,
      before  => Mount['slurmdbd-ArchiveDir'],
    }
    mount { 'slurmdbd-ArchiveDir':
      ensure  => 'mounted',
      name    => $slurm::slurmdbd_archive_dir,
      atboot  => true,
      device  => $slurm::slurmdbd_archive_dir_nfs_device,
      fstype  => 'nfs',
      options => $slurm::slurmdbd_archive_dir_nfs_options,
      before  => File['slurmdbd-ArchiveDir'],
    }
  }

  file { 'slurmdbd.conf':
    ensure    => 'file',
    path      => $slurm::slurmdbd_conf_path,
    owner     => $slurm::slurm_user,
    group     => $slurm::slurm_user_group,
    mode      => '0600',
    content   => template('slurm/slurmdbd/slurmdbd.conf.erb'),
    notify    => $slurm::slurmdbd_notify,
    show_diff => false,
  }
}