Puppet Class: pdsh::install

Defined in:
manifests/install.pp

Summary

Install pdsh

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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'manifests/install.pp', line 3

class pdsh::install {
  assert_private()

  package { 'pdsh':
    ensure => $pdsh::package_ensure,
    name   => $pdsh::package_name,
  }

  if $pdsh::ssh_package_name {
    package { 'pdsh-rcmd-ssh':
      ensure => $pdsh::_ssh_package_ensure,
      name   => $pdsh::ssh_package_name,
      before => Package['pdsh'],
    }
  }

  if $pdsh::rsh_package_name {
    package { 'pdsh-rcmd-rsh':
      ensure => $pdsh::_rsh_package_ensure,
      name   => $pdsh::rsh_package_name,
      before => Package['pdsh'],
    }
  }

  if $pdsh::dshgroup_package_name {
    package { 'pdsh-mod-dshgroup':
      ensure  => $pdsh::package_ensure,
      name    => $pdsh::dshgroup_package_name,
      require => Package['pdsh'],
    }
  }

  if $pdsh::genders_package_name {
    package { 'pdsh-mod-genders':
      ensure  => $pdsh::_genders_package_ensure,
      name    => $pdsh::genders_package_name,
      require => Package['pdsh'],
    }
  }

  if $pdsh::slurm_package_name {
    package { 'pdsh-mod-slurm':
      ensure  => $pdsh::_slurm_package_ensure,
      name    => $pdsh::slurm_package_name,
      require => Package['pdsh'],
    }
  }

  $pdsh::extra_packages.each |$package| {
    package { $package:
      ensure => $pdsh::package_ensure,
    }
  }
}