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
|
# File 'manifests/init.pp', line 19
class gpfs (
Boolean $manage_repo = true,
Optional[String] $repo_baseurl = undef,
Boolean $manage_packages = true,
String $package_ensure = 'present',
Array $packages = [
"gpfs.gplbin-${facts['kernelrelease']}",
'gpfs.adv',
'gpfs.base',
'gpfs.crypto',
'gpfs.docs',
'gpfs.ext',
'gpfs.gpl',
'gpfs.gskit',
'gpfs.msg.en_US',
],
Optional[Array] $config_filesystems = undef,
) {
$osfamily = dig($facts, 'os', 'family')
if ! ($osfamily in ['RedHat']) {
fail("Unsupported OS: ${osfamily}, module ${module_name} only supports RedHat")
}
contain gpfs::install
if $manage_repo {
contain gpfs::repo
Class['gpfs::repo'] -> Class['gpfs::install']
}
gpfs_config { 'puppet':
filesystems => $config_filesystems,
}
}
|