2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'manifests/install.pp', line 2
class pgprobackup::install (
Array[String] $versions = ['12'],
String $package_ensure = 'present',
String $package_name = $pgprobackup::package_name,
Boolean $debug_symbols = true,
) {
$versions.each |String $version| {
$_package_name = "${package_name}-${version}"
if $debug_symbols {
$_packages = [$_package_name, "${_package_name}-${pgprobackup::debug_suffix}"]
} else {
$_packages = [$_package_name]
}
stdlib::ensure_packages($_packages, {
ensure => $package_ensure,
tag => 'pgprobackup',
})
}
}
|