module-postgresql/manifests/lib/devel.pp

27 lines
698 B
ObjectPascal
Raw Normal View History

# This class installs postgresql development libraries. See README.md for more
# details.
class postgresql::lib::devel(
$package_name = $postgresql::params::devel_package_name,
$package_ensure = 'present',
$link_pg_config = true
) inherits postgresql::params {
validate_string($package_name)
package { 'postgresql-devel':
ensure => $package_ensure,
name => $package_name,
tag => 'postgresql',
}
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') {
file {'/usr/bin/pg_config':
ensure => link,
target => "${postgresql::params::bindir}/pg_config",
}
}
}
}