12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'manifests/lib/devel.pp', line 12
class postgresql::lib::devel (
Variant[Enum['present', 'absent', 'purged', 'disabled', 'installed', 'latest'], String[1]] $package_ensure = 'present',
String $package_name = $postgresql::params::devel_package_name,
Boolean $link_pg_config = $postgresql::params::link_pg_config,
) inherits postgresql::params {
if $facts['os']['family'] == 'Gentoo' {
fail('osfamily Gentoo does not have a separate "devel" package, postgresql::lib::devel is not supported')
}
package { 'postgresql-devel':
ensure => $package_ensure,
name => $package_name,
tag => 'puppetlabs-postgresql',
}
if $link_pg_config {
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",
}
}
}
}
|