2013-08-27 22:43:47 +02:00
|
|
|
# This class installs postgresql development libraries. See README.md for more
|
|
|
|
# details.
|
|
|
|
class postgresql::lib::devel(
|
|
|
|
$package_name = $postgresql::params::devel_package_name,
|
2014-07-14 15:59:37 +02:00
|
|
|
$package_ensure = 'present',
|
2014-11-21 05:09:28 +01:00
|
|
|
$link_pg_config = $postgresql::params::link_pg_config
|
2013-08-27 22:43:47 +02:00
|
|
|
) inherits postgresql::params {
|
|
|
|
|
|
|
|
validate_string($package_name)
|
|
|
|
|
|
|
|
package { 'postgresql-devel':
|
|
|
|
ensure => $package_ensure,
|
|
|
|
name => $package_name,
|
|
|
|
tag => 'postgresql',
|
|
|
|
}
|
2014-07-14 15:59:37 +02:00
|
|
|
|
|
|
|
if $link_pg_config {
|
2014-07-17 19:10:35 +02:00
|
|
|
if ( $postgresql::params::bindir != '/usr/bin' and $postgresql::params::bindir != '/usr/local/bin') {
|
2014-11-21 05:09:28 +01:00
|
|
|
file { '/usr/bin/pg_config':
|
2014-07-14 15:59:37 +02:00
|
|
|
ensure => link,
|
|
|
|
target => "${postgresql::params::bindir}/pg_config",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-27 22:43:47 +02:00
|
|
|
}
|