pg_ctl may return success on promoting a replica to master, but the database isn't yet in read-write state.  Sleep for 5 seconds to ensure the next database operation doesn't fail
pg_ctl may return success on promoting a replica to master, but the database isn't yet in
read-write state.  Sleep for 5 seconds to ensure the next database operation doesn't fail

apcera/chef-postgresql,apcera/chef-postgresql,apcera/chef-postgresql