Puppet Class: lsys_postgresql::params
- Inherited by:
-
lsys_postgresql
- Defined in:
- manifests/params.pp
Summary
A short summary of the purpose of this classOverview
A description of what this class does
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 |
# File 'manifests/params.pp', line 7
class lsys_postgresql::params {
include bsys::params
$osname = $bsys::params::osname
$osmaj = $bsys::params::osmaj
case $osname {
'CentOS': {
if $osmaj == '7' {
$postgres_version = '15.8'
$postgres_manage_repo = true
}
else {
$postgres_version = '16.4'
$postgres_manage_repo = false
}
}
'Rocky': {
$postgres_version = '16.4'
$postgres_manage_repo = false
}
'Ubuntu': {
$postgres_version = "16.2-1.pgdg${osmaj}+1"
$postgres_manage_repo = true
}
default: {
$postgres_version = undef
$postgres_manage_repo = true
}
}
}
|