X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-database.git/blobdiff_plain/ecbc2480383113933e782abee312f7c42e8fdd55..d782699e42f87e77f13dc63f9c7d81429c0f7ff9:/pg_hba.conf.mako diff --git a/pg_hba.conf.mako b/pg_hba.conf.mako index ea5fde5..09a87dc 100644 --- a/pg_hba.conf.mako +++ b/pg_hba.conf.mako @@ -72,16 +72,12 @@ # (autovacuum, daily cronjob, replication, and similar tasks). # # Database administrative login by UNIX sockets -local all postgres ident sameuser +local all postgres ident # TYPE DATABASE USER CIDR-ADDRESS METHOD # "local" is for Unix domain socket connections only -local all all ident sameuser -# IPv4 local connections: -host all all 127.0.0.1/32 md5 -# IPv6 local connections: -host all all ::1/128 md5 +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