Allow multiple noc servers
[invirt/packages/invirt-database.git] / pg_hba.conf.mako
index 2602310..d671a27 100644 (file)
@@ -81,4 +81,6 @@ local   all         all                               ident
 % for m in cfg.hosts + [cfg.db, cfg.remote, cfg.console]:
 host   ${cfg.db.dbname}        ${cfg.db.user}  ${m.ip}/32      trust
 % endfor
-host    ${cfg.noc.dbname}      ${cfg.noc.user} ${cfg.noc.ip}/32        trust
+% for m in cfg.noc:
+host   ${m.dbname}     ${m.user}       ${m.ip}/32      trust
+% endfor