module-postgresql/manifests/init.pp
Chris Price 208b663ad1 Rework postgres_default_version fact
This commit fixes up the `postgres_default_version` fact so that
it doesn't use apt/yum (slow), and instead just has a hard-coded
list of default postgres versions for various OS versions.  We
will need to add new OS versions to this fact over time, but that
seems preferable to the previous implementation which was causing
slower puppet runs on all nodes (regardless of whether they were
actually using postgres or not).
2012-12-07 10:40:18 -08:00

29 lines
736 B
Puppet

# Class: postgresql
#
# This class installs postgresql client software.
#
# *Note* don't forget to make sure to add any necessary yum or apt
# repositories if specifying a custom version.
#
# Parameters:
# [*version*] - The postgresql version to install.
# [*package_name*] - The name of the postgresql client package.
# [*ensure*] - the ensure parameter passed to the postgresql client package resource
# Actions:
#
# Requires:
#
# Sample Usage:
#
class postgresql (
$package_name = $postgresql::params::client_package_name,
$package_ensure = 'present'
) inherits postgresql::params {
package { 'postgresql-client':
ensure => $package_ensure,
name => $package_name,
tag => 'postgresql',
}
}