Commit 71b35d59 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis Committed by Christos Stavrakakis
Browse files

Allow password-less access from db node in db

Signed-off-by: default avatarDimitris Aragiorgis <>
parent c79d864a
......@@ -409,10 +409,10 @@ def setup_mq():
def allow_access_in_db(ip):
def allow_access_in_db(ip, user="all", trust=""):
cmd = """
echo host all all {0}/32 md5 >> /etc/postgresql/8.4/main/pg_hba.conf
echo host all {0} {1}/32 md5 {2} >> /etc/postgresql/8.4/main/pg_hba.conf
""".format(user, ip, trust)
try_run("/etc/init.d/postgresql restart")
......@@ -436,6 +436,7 @@ def setup_db():
try_run("/etc/init.d/postgresql restart")
allow_access_in_db("", "postgres", "trust")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment