This repository has been archived by the owner on May 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
params.pp
87 lines (76 loc) · 2.33 KB
/
params.pp
1
2
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
################################################################################
# Time-stamp: <Mon 2017-08-28 11:49:06 hcartiaux>
#
# File:: <tt>params.pp</tt>
# Author:: UL HPC Team (hpc-sysadmins@uni.lu)
# Copyright:: Copyright (c) 2017 UL HPC Team
# License:: Apache-2.0
#
# ------------------------------------------------------------------------------
# == Class: gpfs::params
#
# In this class are defined as variables values that are used in other
# gpfs classes and definitions.
# This class should be included, where necessary, and eventually be enhanced
# with support for more Operating Systems.
#
# == Warnings
#
# /!\ Always respect the style guide available
# here[http://docs.puppetlabs.com/guides/style_guide]
#
# [Remember: No empty lines between comments and class definition]
#
class gpfs::params {
#### MODULE INTERNAL VARIABLES #########
# (Modify to adapt to unsupported OSes)
#########################################
# ensure the presence (or absence) of gpfs
$ensure = 'present'
$read_only = false
###########################################
# gpfs system configs
###########################################
# gpfs packages
$installer_path = $::operatingsystem ? {
default => '/root/GPFS',
}
$extra_packages = $::operatingsystem ? {
/(?i-mx:ubuntu|debian)/ => 'build-essential',
/(?i-mx:centos|fedora|redhat)/ => ['libaio', 'ksh', 'm4', 'gcc-c++'], # net-tools (already installed)
default => []
}
$gpfs_version = $::operatingsystem ? {
default => '4.2.2.3',
}
$gskit_version = $::operatingsystem ? {
default => '8.0.50-57',
}
$gpfs_base_directory = $::operatingsystem ? {
default => '/usr/lpp/mmfs',
}
$mountoptions_file = $::operatingsystem ? {
default => '/var/mmfs/etc/localMountOptions'
}
$mountoptions_file_owner = $::operatingsystem ? {
default => 'root'
}
$mountoptions_file_group = $::operatingsystem ? {
default => 'root'
}
$mountoptions_file_mode = $::operatingsystem ? {
default => '0755'
}
$bash_profile_d_file = $::operatingsystem ? {
default => '/etc/profile.d/gpfs.sh'
}
$bash_profile_d_file_owner = $::operatingsystem ? {
default => 'root'
}
$bash_profile_d_file_group = $::operatingsystem ? {
default => 'root'
}
$bash_profile_d_file_mode = $::operatingsystem ? {
default => '0755'
}
}