e97c8338c9
Rebases to puppetlabs-postgresql commit id: 5d4a543a54df0c9c52a5c7c1f68e5ae51d862947 Older postgresql lacks capability to handle bindir path changes in postgres 9.0 and newer. Change-Id: If8265bcdd7144a44b97a9f2e7d72f8a4b263920a Partial-Bug: #1386118 Related blueprint merge-openstack-puppet-modules
24 lines
658 B
Puppet
24 lines
658 B
Puppet
# PRIVATE CLASS: do not call directly
|
|
class postgresql::server::install {
|
|
$package_ensure = $postgresql::server::package_ensure
|
|
$package_name = $postgresql::server::package_name
|
|
$client_package_name = $postgresql::server::client_package_name
|
|
|
|
$_package_ensure = $package_ensure ? {
|
|
true => 'present',
|
|
false => 'purged',
|
|
'absent' => 'purged',
|
|
default => $package_ensure,
|
|
}
|
|
|
|
package { 'postgresql-server':
|
|
ensure => $_package_ensure,
|
|
name => $package_name,
|
|
|
|
# This is searched for to create relationships with the package repos, be
|
|
# careful about its removal
|
|
tag => 'postgresql',
|
|
}
|
|
|
|
}
|