From e8b8f29cf3bd44c924cd2c36dab372a6d65bbd4a Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Thu, 3 Mar 2016 22:30:51 +0200 Subject: fix up pgsql var --- modules/postgresql/manifests/var.pp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules/postgresql/manifests') diff --git a/modules/postgresql/manifests/var.pp b/modules/postgresql/manifests/var.pp index 4c8a5f54..39bbb02d 100644 --- a/modules/postgresql/manifests/var.pp +++ b/modules/postgresql/manifests/var.pp @@ -1,12 +1,13 @@ -class postgresql::var( - $pgsql_data = '/var/lib/pgsql/data/', +class postgresql::var { + + $pgsql_data = '/var/lib/pgsql/data/' + if versioncmp($::lsbdistrelease, '5') < 0 { $pg_version = '9.0' } else { $pg_version = '9.4' } -) -{ + $hba_file = "${pgsql_data}/pg_hba.conf" } # vim: sw=2 -- cgit v1.2.1