Removed repo class.

This commit is contained in:
Etienne Pelletier 2012-11-20 14:55:16 -06:00 committed by Chris Price
parent 2a108abe8b
commit ca701b303c
4 changed files with 0 additions and 44 deletions

View file

@ -21,8 +21,6 @@ class postgresql::devel(
$package_name_real = $package_name ? { undef => $postgresql::packages::devel_package_name, default => $package_name }
Class['postgresql::repo'] -> Package['postgresql_devel']
package { 'postgresql_devel':
ensure => $package_ensure,
name => $package_name_real,

View file

@ -21,17 +21,13 @@ class postgresql (
version => $version
}
}
include postgresql::repo
include postgresql::packages
$package_name_real = $package_name ? { undef => $postgresql::packages::client_package_name, default => $package_name }
Class['postgresql::repo'] -> Package['postgresql_client']
package { 'postgresql_client':
ensure => $package_ensure,
name => $package_name_real,
require => Class['postgresql::repo'],
}
}

View file

@ -1,35 +0,0 @@
# ==Class: postgresql::repo
#
# A class to add repositories (yum, apt, etc) needed to
# install non-default versions of Postgressql.
#
# === Variables
# [*postgresql::version::version*] contains the version number.
#
# === Authors
#
# Etienne Pelletier <epelletier@maestrodev.com>
#
class postgresql::repo($version = $postgresql::version::version) {
include postgresql::version
if $version != $::postgres_default_version {
case $::osfamily {
'RedHat': {
$repo_name = "postgresql${version}"
yumrepo { 'postgresql-repo':
name => $repo_name,
baseurl => "http://yum.postgresql.org/${version}/redhat/rhel-\$releasever-\$basearch",
descr => "Postgresql ${version} Yum Repo",
enabled => 1,
gpgcheck => 0,
}
}
default: {
# TODO add Debian apt repos.
}
}
}
}

View file

@ -33,14 +33,11 @@ class postgresql::server (
include postgresql::paths
$package_name_real = $package_name ? { undef => $postgresql::packages::server_package_name, default => $package_name }
class { 'postgresql::repo': }
package { 'postgresql-server':
ensure => $package_ensure,
name => $package_name_real,
require => Class['postgresql::repo']
}
$config_class = {}