-
Notifications
You must be signed in to change notification settings - Fork 3
/
params.pp
57 lines (49 loc) · 1.08 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
# == Class: boilerplate::params
#
# This class exists to
# 1. Declutter the default value assignment for class parameters.
# 2. Manage internally used module variables in a central place.
#
# Therefore, many operating system dependent differences (names, paths, ...)
# are addressed in here.
#
#
# === Parameters
#
# This class does not provide any parameters.
#
#
# === Examples
#
# This class is not intended to be used directly.
#
#
# === Links
#
# * {Puppet Docs: Using Parameterized Classes}[http://j.mp/nVpyWY]
#
#
# === Authors
#
# * John Doe <mailto:john.doe@example.com>
#
class boilerplate::params {
#### Default values for the parameters of the main module class, init.pp
# ensure
$ensure = 'present'
# autoupgrade
$autoupgrade = false
#### Internal module values
# packages
case $::operatingsystem {
'CentOS', 'Fedora', 'Scientific': {
$package = [ 'FIXME/TODO' ]
}
'Debian', 'Ubuntu': {
$package = [ 'FIXME/TODO' ]
}
default: {
fail("\"${module_name}\" provides no package default value for \"${::operatingsystem}\"")
}
}
}