aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/postgresql/templates/pg_hba.conf17
1 files changed, 14 insertions, 3 deletions
diff --git a/modules/postgresql/templates/pg_hba.conf b/modules/postgresql/templates/pg_hba.conf
index adc68768..2128fc68 100644
--- a/modules/postgresql/templates/pg_hba.conf
+++ b/modules/postgresql/templates/pg_hba.conf
@@ -84,7 +84,7 @@
# FIXME ip v6 is hardcoded, facter do not seems to support
# fetch it
-db = ['epoll','mirrors','transifex','bugs','sympa','phpbb']
+db = ['epoll','mirrors','transifex','bugs','sympa']
for i in db
%>
host <%= i %> <%= i %> 127.0.0.1/32 md5
@@ -94,9 +94,20 @@ hostssl <%= i %> <%= i %> 2a02:2178:2:7::2/128 md5
<%
end
%>
-# temporary, for the forum on friteuse vm
-hostssl phpbb phpbb 192.168.122.0/24 md5
+<%
+lang = ['en']
+for l in lang
+%>
+host phpbb_<%= l %> phpbb 127.0.0.1/32 md5
+host phpbb_<%= l %> phpbb ::1/128 md5
+hostssl phpbb_<%= l %> phpbb <%= ipaddress %>/32 md5
+hostssl phpbb_<%= l %> phpbb 2a02:2178:2:7::2/128 md5
+# temporary, for the forum on friteuse vm
+hostssl phpbb_<%= l %> phpbb 192.168.122.0/24 md5
+<%
+end
+%>
# When creating the database ( with bin/checkstup.pl ) bugzilla need to
# access to template1 ( https://bugzilla.mozilla.org/show_bug.cgi?id=542507 )
host template1 bugs 127.0.0.1/32 md5