From: Tony Mack <tmack@paris.CS.Princeton.EDU> Date: Tue, 10 Jan 2012 18:10:08 +0000 (-0500) Subject: support openstack database access to pg_hba.conf X-Git-Tag: before-alchemy~2^2~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f26ca689d10f92f7d3f612a91e7dcac02ef9df3d;p=sfa.git support openstack database access to pg_hba.conf --- 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