6034e122de
This is a first working version of postgresql::server. It includes a very simple test manifest, which has been tried out on CentOS6 and Ubuntu 10.04; initial tests were successful both from a clean state and for subsequent runs. Includes a new fact called 'postgres_default_version', which detects what the default version of postgres is for a given OS. This is needed because some of the commands and directory names include this version string. Current implementation *only* supports managing the system default version; in the future it would be nice to allow the user to explicitly specify a postgres version, but that isn't yet supported. The "postgresql::server" class includes a call to postgres's initdb command on redhat systems, because they don't do this automatically when the package is installed.
24 lines
457 B
Puppet
24 lines
457 B
Puppet
# Class: postgresql
|
|
#
|
|
# This class installs postgresql client software.
|
|
#
|
|
# Parameters:
|
|
# [*client_package_name*] - The name of the postgresql client package.
|
|
#
|
|
# Actions:
|
|
#
|
|
# Requires:
|
|
#
|
|
# Sample Usage:
|
|
#
|
|
class postgresql (
|
|
$package_name = $postgresql::params::client_package_name,
|
|
$package_ensure = 'present'
|
|
) inherits postgresql::params {
|
|
|
|
package { 'postgresql_client':
|
|
name => $package_name,
|
|
ensure => $package_ensure,
|
|
}
|
|
|
|
}
|