Puppet Class: xdmod::install

Defined in:
manifests/install.pp

Summary

Manage XDMoD packages

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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'manifests/install.pp', line 3

class xdmod::install {
  if versioncmp($facts['os']['release']['major'], '8') == 0 {
    package { 'nodejs-module':
      ensure      => '16',
      name        => 'nodejs',
      enable_only => true,
      provider    => 'dnfmodule',
    }

    if $xdmod::local_repo_name {
      Package['nodejs-module'] -> Package['xdmod']
    } else {
      Package['nodejs-module'] -> Yum::Install[$xdmod::package_name]
    }

    php::extension { 'mongodb':
      ensure     => 'installed',
      provider   => 'pecl',
      ini_prefix => '40-',
      require    => Package['php-devel'],
    }
  }

  if $xdmod::local_repo_name {
    package { 'xdmod':
      ensure  => $xdmod::package_ensure,
      name    => $xdmod::package_name,
      require => $xdmod::_package_require,
    }

    if $xdmod::enable_appkernel {
      package { 'xdmod-appkernels':
        ensure  => $xdmod::xdmod_appkernels_package_ensure,
        name    => $xdmod::appkernels_package_name,
        require => $xdmod::_package_require,
      }
    }

    if $xdmod::enable_supremm {
      package { 'xdmod-supremm':
        ensure  => $xdmod::xdmod_supremm_package_ensure,
        name    => $xdmod::xdmod_supremm_package_name,
        require => $xdmod::_package_require,
      }
    }
  } else {
    yum::install { $xdmod::package_name:
      ensure  => 'present',
      source  => $xdmod::_package_url,
      timeout => 0,
      require => $xdmod::_package_require,
    }
    if $xdmod::enable_appkernel {
      yum::install { $xdmod::appkernels_package_name:
        ensure  => 'present',
        source  => $xdmod::_appkernels_package_url,
        timeout => 0,
        require => $xdmod::_package_require,
      }
    }
    if $xdmod::enable_supremm {
      yum::install { $xdmod::xdmod_supremm_package_name:
        ensure  => 'present',
        source  => $xdmod::_xdmod_supremm_package_url,
        timeout => 0,
        require => $xdmod::_package_require,
      }
    }
  }
}