Revision 61aedf5a snf-deploy/fabfile.py
b/snf-deploy/fabfile.py | ||
---|---|---|
429 | 429 |
echo host all {0} {1}/32 {2} >> /etc/postgresql/8.4/main/pg_hba.conf |
430 | 430 |
""".format(user, ip, method) |
431 | 431 |
try_run(cmd) |
432 |
cmd = """ |
|
433 |
sed -i 's/\(host.*127.0.0.1.*\)md5/\1trust/' /etc/postgresql/8.4/main/pg_hba.conf |
|
434 |
""" |
|
435 |
try_run(cmd) |
|
432 | 436 |
try_run("/etc/init.d/postgresql restart") |
433 | 437 |
|
434 | 438 |
@roles("db") |
Also available in: Unified diff