From: Mitchell E Berger Date: Wed, 25 Apr 2018 06:43:58 +0000 (-0400) Subject: Allow multiple noc servers X-Git-Tag: 0.2.12^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-database.git/commitdiff_plain/1c4ab89c5b2d54b6fd05817589266f755c4e6935 Allow multiple noc servers --- diff --git a/debian/changelog b/debian/changelog index 6bdbdca..1d48e24 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-database (0.2.12) unstable; urgency=low + + * Allow multiple noc servers + + -- Mitchell Berger Wed, 25 Apr 2018 02:38:22 -0400 + invirt-database (0.2.11) unstable; urgency=low * Added nagios user to hba. diff --git a/pg_hba.conf.mako b/pg_hba.conf.mako index 2602310..d671a27 100644 --- a/pg_hba.conf.mako +++ b/pg_hba.conf.mako @@ -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