aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql/manifests
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2016-03-03 22:30:51 +0200
committerThomas Backlund <tmb@mageia.org>2016-03-03 22:30:51 +0200
commite8b8f29cf3bd44c924cd2c36dab372a6d65bbd4a (patch)
tree9c9c57362344db936dcb71dd0fe0e79577b35d73 /modules/postgresql/manifests
parent9e8707d805d9893a67f36554539ecf4c0f3d75a8 (diff)
downloadpuppet-e8b8f29cf3bd44c924cd2c36dab372a6d65bbd4a.tar
puppet-e8b8f29cf3bd44c924cd2c36dab372a6d65bbd4a.tar.gz
puppet-e8b8f29cf3bd44c924cd2c36dab372a6d65bbd4a.tar.bz2
puppet-e8b8f29cf3bd44c924cd2c36dab372a6d65bbd4a.tar.xz
puppet-e8b8f29cf3bd44c924cd2c36dab372a6d65bbd4a.zip
fix up pgsql var
Diffstat (limited to 'modules/postgresql/manifests')
-rw-r--r--modules/postgresql/manifests/var.pp9
1 files changed, 5 insertions, 4 deletions
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