Merge pull request #437 from dinerroger/sles_support

Add support for SLES 11
This commit is contained in:
Hunter Haugen 2014-08-21 10:23:55 -07:00
commit 048d9c93c5
2 changed files with 29 additions and 0 deletions

View file

@ -85,6 +85,10 @@ class postgresql::globals (
default => '9.2',
},
'FreeBSD' => '93',
'Suse' => $::operatingsystem ? {
'SLES' => '91',
default => undef,
},
default => undef,
}
$globals_version = pick($version, $default_version, 'unknown')
@ -97,6 +101,7 @@ class postgresql::globals (
'8.4' => '1.5',
'9.0' => '1.5',
'9.1' => '1.5',
'91' => '1.5',
'9.2' => '2.0',
'9.3' => '2.1',
default => undef,

View file

@ -174,6 +174,30 @@ class postgresql::params inherits postgresql::globals {
$needs_initdb = pick($needs_initdb, true)
}
'Suse': {
$user = pick($user, 'postgres')
$group = pick($group, 'postgres')
$client_package_name = pick($client_package_name, "postgresql${version}")
$server_package_name = pick($server_package_name, "postgresql${version}-server")
$contrib_package_name = pick($contrib_package_name, "postgresql${version}-contrib")
$devel_package_name = pick($devel_package_name, "postgresql${version}-devel")
$java_package_name = pick($java_package_name, undef)
$perl_package_name = pick($plperl_package_name, undef)
$plperl_package_name = pick($plperl_package_name, undef)
$python_package_name = pick($python_package_name, undef)
$service_name = pick($service_name, 'postgresql')
$bindir = pick($bindir, "/usr/lib/postgresql${version}/bin")
$datadir = pick($datadir, '/var/lib/pgsql/data')
$confdir = pick($confdir, $datadir)
$service_status = pick($service_status, "/etc/init.d/${service_name} status")
$psql_path = pick($psql_path, "${bindir}/psql")
$firewall_supported = pick($firewall_supported, false)
$needs_initdb = pick($needs_initdb, true)
}
default: {
# Based on the existing version of the firewall module, this is normally
# false for other OS, but this allows an escape hatch to override it.