aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2016-03-03 21:44:56 +0200
committerThomas Backlund <tmb@mageia.org>2016-03-03 21:44:56 +0200
commit2a29518ca8c120f78ea94ea24ada77d639b23f27 (patch)
treefa6fb0bfcf35894f1546b3cc96a0033d565c7ea8 /modules/postgresql
parent735624260d4b37cdcf4669f19e6d3d43e25a3801 (diff)
downloadpuppet-2a29518ca8c120f78ea94ea24ada77d639b23f27.tar
puppet-2a29518ca8c120f78ea94ea24ada77d639b23f27.tar.gz
puppet-2a29518ca8c120f78ea94ea24ada77d639b23f27.tar.bz2
puppet-2a29518ca8c120f78ea94ea24ada77d639b23f27.tar.xz
puppet-2a29518ca8c120f78ea94ea24ada77d639b23f27.zip
we use postgresql 9.4 on mga5
Diffstat (limited to 'modules/postgresql')
-rw-r--r--modules/postgresql/manifests/var.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/postgresql/manifests/var.pp b/modules/postgresql/manifests/var.pp
index 094a83fd..4c8a5f54 100644
--- a/modules/postgresql/manifests/var.pp
+++ b/modules/postgresql/manifests/var.pp
@@ -1,6 +1,10 @@
class postgresql::var(
$pgsql_data = '/var/lib/pgsql/data/',
- $pg_version = '9.0'
+ if versioncmp($::lsbdistrelease, '5') < 0 {
+ $pg_version = '9.0'
+ } else {
+ $pg_version = '9.4'
+ }
)
{
$hba_file = "${pgsql_data}/pg_hba.conf"