From 1956881b2b6dac1e18296a22a7ba146c34ba981a Mon Sep 17 00:00:00 2001 From: Christian Kaenzig Date: Thu, 23 Jul 2015 09:45:52 +0200 Subject: [PATCH] Fix postgis default package name on RedHat The /5/ regex on $::operatingsystemrelease would match any distro release with a 5 in it, including for example Centos "7.1.1503". Given the commit message for this regex, it was meant to match RedHat / Centos 5.x. --- manifests/params.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 8180b34..4b1dfc9 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -72,7 +72,7 @@ class postgresql::params inherits postgresql::globals { $postgis_package_name = pick( $postgis_package_name, $::operatingsystemrelease ? { - /5/ => 'postgis', + /^5\./ => 'postgis', default => versioncmp($postgis_version, '2') ? { '-1' => "postgis${package_version}", default => "postgis2_${package_version}",}