aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql
diff options
context:
space:
mode:
Diffstat (limited to 'modules/postgresql')
-rw-r--r--modules/postgresql/manifests/init.pp1
-rw-r--r--modules/postgresql/templates/pg_hba.conf1
2 files changed, 1 insertions, 1 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp
index a1f39b95..5ba79811 100644
--- a/modules/postgresql/manifests/init.pp
+++ b/modules/postgresql/manifests/init.pp
@@ -60,6 +60,7 @@ class postgresql {
# TODO use augeas to manage this file once augeas 0.7.4 is installed
# on our server, as this would allow use to autodeclare database in it without
# much trouble
+ $db = list_exported_ressources('Postgresql::Database')
file { 'pg_hba.conf':
path => "$pgsql_data/pg_hba.conf",
ensure => present,
diff --git a/modules/postgresql/templates/pg_hba.conf b/modules/postgresql/templates/pg_hba.conf
index 2128fc68..19b1bd05 100644
--- a/modules/postgresql/templates/pg_hba.conf
+++ b/modules/postgresql/templates/pg_hba.conf
@@ -84,7 +84,6 @@
# FIXME ip v6 is hardcoded, facter do not seems to support
# fetch it
-db = ['epoll','mirrors','transifex','bugs','sympa']
for i in db
%>
host <%= i %> <%= i %> 127.0.0.1/32 md5