Puppet Class: postgresql::lib::devel
Summary
This class installs postgresql development libraries.
Overview
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'manifests/lib/devel.pp', line 11
class postgresql::lib::devel (
String $package_name = $postgresql::params::devel_package_name,
String[1] $package_ensure = 'present',
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",
}
}
}
}
|