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
|
# File 'manifests/microfocus.pp', line 18
class pscobol::microfocus (
Enum['present','absent'] $ensure = $pscobol::params::ensure,
Optional[String] $installdir = $pscobol::params::installdir,
Optional[String] $package = $pscobol::params::package,
Optional[Array[String[1]]] $patches = $pscobol::params::patches,
Optional[String] $license = $pscobol::params::license,
) inherits pscobol::params {
debug ("Ensure 'pscobol::microfocus' to be '${ensure}' in '${installdir}'")
$lmpath = $pscobol::params::lmpath
class { 'pscobol::microfocus::install':
ensure => $ensure,
installdir => $installdir,
package => $package,
}
class { 'pscobol::microfocus::update':
ensure => $ensure,
installdir => $installdir,
patches => $patches,
}
class { 'pscobol::microfocus::license':
ensure => $ensure,
license => $license,
lmpath => $lmpath,
}
contain 'pscobol::microfocus::install'
contain 'pscobol::microfocus::update'
contain 'pscobol::microfocus::license'
if ($ensure == 'present') {
Class['pscobol::microfocus::install'] -> Class['pscobol::microfocus::update'] -> Class['pscobol::microfocus::license']
} else {
Class['pscobol::microfocus::license'] -> Class['pscobol::microfocus::install']
}
}
|