Skip to content

Commit 246725c

Browse files
author
Ashley Penney
committed
Fix postgis so it installs the approprate RHEL5 package.
In RHEL5 the package was just named 'postgis' in the external repos, rather than postgis$package_version.
1 parent 2c58670 commit 246725c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

manifests/globals.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
}
9393

9494
$default_postgis_version = $globals_version ? {
95-
'8.1' => '1.5',
95+
'8.1' => '1.3.6',
9696
'8.4' => '1.5',
9797
'9.0' => '1.5',
9898
'9.1' => '1.5',

manifests/params.pp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@
6363

6464
$postgis_package_name = pick(
6565
$postgis_package_name,
66-
versioncmp($postgis_version, '2') ? {
67-
'-1' => "postgis${package_version}",
68-
default => "postgis2_${package_version}",
66+
$::operatingsystemrelease ? {
67+
/5/ => 'postgis',
68+
default => versioncmp($postgis_version, '2') ? {
69+
'-1' => "postgis${package_version}",
70+
default => "postgis2_${package_version}",}
6971
}
7072
)
7173
}

0 commit comments

Comments
 (0)