sipb-xen-database-server: fix init script, expand pg_hba.conf
[invirt/packages/invirt-database.git] / server / etc / postgresql / 8.3 / main / pg_hba.conf.mako
index cc02053..ea5fde5 100644 (file)
@@ -82,7 +82,6 @@ local   all         all                               ident sameuser
 host    all         all         127.0.0.1/32          md5
 # IPv6 local connections:
 host    all         all         ::1/128               md5
-host   ${cfg.db.dbname}        ${cfg.db.user}  ${cfg.db.ip}/32 trust
-% for h in cfg.hosts:
-host   ${cfg.db.dbname}        ${cfg.db.user}  ${h.ip}/32      trust
+% for m in cfg.hosts + [cfg.db, cfg.remote, cfg.console]:
+host   ${cfg.db.dbname}        ${cfg.db.user}  ${m.ip}/32      trust
 % endfor