Allow multiple noc servers 0.2.12
authorMitchell E Berger <mitchb@mit.edu>
Wed, 25 Apr 2018 06:43:58 +0000 (02:43 -0400)
committerMitchell E Berger <mitchb@mit.edu>
Wed, 25 Apr 2018 06:43:58 +0000 (02:43 -0400)
debian/changelog
pg_hba.conf.mako

index 6bdbdca..1d48e24 100644 (file)
@@ -1,3 +1,9 @@
+invirt-database (0.2.12) unstable; urgency=low
+
+  * Allow multiple noc servers
+
+ -- Mitchell Berger <mitchb@mit.edu>  Wed, 25 Apr 2018 02:38:22 -0400
+
 invirt-database (0.2.11) unstable; urgency=low
 
   * Added nagios user to hba.
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