From 1c4ab89c5b2d54b6fd05817589266f755c4e6935 Mon Sep 17 00:00:00 2001 From: Mitchell E Berger Date: Wed, 25 Apr 2018 02:43:58 -0400 Subject: [PATCH] Allow multiple noc servers --- debian/changelog | 6 ++++++ pg_hba.conf.mako | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) 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 -- 1.7.9.5