2013-08-27 22:43:47 +02:00
|
|
|
# PRIVATE CLASS: do not call directly
|
|
|
|
class postgresql::server::install {
|
2013-09-20 00:51:16 +02:00
|
|
|
$package_ensure = $postgresql::server::package_ensure
|
|
|
|
$package_name = $postgresql::server::package_name
|
|
|
|
$client_package_name = $postgresql::server::client_package_name
|
2013-08-27 22:43:47 +02:00
|
|
|
|
2013-09-20 00:51:16 +02:00
|
|
|
$_package_ensure = $package_ensure ? {
|
|
|
|
true => 'present',
|
|
|
|
false => 'purged',
|
|
|
|
'absent' => 'purged',
|
|
|
|
default => $package_ensure,
|
|
|
|
}
|
2013-08-27 22:43:47 +02:00
|
|
|
|
2013-09-20 00:51:16 +02:00
|
|
|
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',
|
2013-08-27 22:43:47 +02:00
|
|
|
}
|
2013-09-19 22:15:09 +02:00
|
|
|
|
2013-08-27 22:43:47 +02:00
|
|
|
}
|