Puppet Class: slurm::common::install

Defined in:
manifests/common/install.pp

Overview



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/common/install.pp', line 2

class slurm::common::install {

  if $slurm::osfamily == 'RedHat' {
    $package_class = 'slurm::common::install::rpm'
  } elsif $slurm::osfamily == 'Debian' {
    $package_class = 'slurm::common::install::apt'
  }

  if $slurm::repo_baseurl {
    $install_method = pick($slurm::install_method, 'package')
  } else {
    $install_method = pick($slurm::install_method, 'source')
  }
  if $install_method == 'package' {
    $install_class = $package_class
  } else {
    $install_class = 'slurm::common::install::source'
  }

  contain $install_class
}