aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-21 15:20:07 +0000
committerMichael Scherer <misc@mageia.org>2011-02-21 15:20:07 +0000
commit2d1add629203c3a79ecf72e0f9a116028df1424c (patch)
treeede9eb912aeb54002cff6602194309ffd70f6ed5 /modules/postgresql
parent1c7501e2c56403044b8f3d24f11f4a37cf271757 (diff)
downloadpuppet-2d1add629203c3a79ecf72e0f9a116028df1424c.tar
puppet-2d1add629203c3a79ecf72e0f9a116028df1424c.tar.gz
puppet-2d1add629203c3a79ecf72e0f9a116028df1424c.tar.bz2
puppet-2d1add629203c3a79ecf72e0f9a116028df1424c.tar.xz
puppet-2d1add629203c3a79ecf72e0f9a116028df1424c.zip
- adapt the list of database to the setup of forum
Diffstat (limited to 'modules/postgresql')
-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