From f26ca689d10f92f7d3f612a91e7dcac02ef9df3d Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 10 Jan 2012 13:10:08 -0500 Subject: [PATCH] support openstack database access to pg_hba.conf --- init.d/sfa | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.d/sfa b/init.d/sfa index 475b821b..32cc1a07 100755 --- a/init.d/sfa +++ b/init.d/sfa @@ -167,6 +167,10 @@ function db_start () { echo "host $SFA_DB_NAME $SFA_DB_USER 127.0.0.1/32 password" [ -n "$registry_ip" ] && echo "host $SFA_DB_NAME $SFA_DB_USER ${registry_ip}/32 password" ) >>$pghba_conf + + if [ "$SFA_GENERIC_FLAVOUR" == "openstack" ] ; then + [ -n "$registry_ip" ] && echo "host nova nova ${registry_ip}/32 password" >> $pghba_conf + fi # Fix ownership (sed -i changes it) chown postgres:postgres $postgresql_conf $pghba_conf -- 2.47.0