Puppet Class: gpfs

Defined in:
manifests/init.pp

Summary

base GPFS class

Overview

Examples:

include ::gpfs

Parameters:

  • manage_repo (Boolean) (defaults to: true)

    Sets if GPFS repo should be managed

  • repo_baseurl (Optional[String]) (defaults to: undef)

    The GPFS repo baseurl

  • manage_packages (Boolean) (defaults to: true)

    Determines if GPFS packages should be managed

  • package_ensure (String) (defaults to: 'present')

    GPFS package ensure property

  • packages (Array) (defaults to: [ "gpfs.gplbin-${facts['kernelrelease']}", 'gpfs.adv', 'gpfs.base', 'gpfs.crypto', 'gpfs.docs', 'gpfs.ext', 'gpfs.gpl', 'gpfs.gskit', 'gpfs.msg.en_US', ])

    GPFS base packages

  • config_filesystems (Optional[Array]) (defaults to: undef)

    Filesystems where filesets are managed by Puppet



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,
  }
}