Skip to content

Commit

Permalink
Merge pull request #217 from bparees/petset_host
Browse files Browse the repository at this point in the history
check mongo status via host, not localhost to ensure remote accessibility
  • Loading branch information
bparees committed Jan 4, 2017
2 parents ddcf403 + a90709d commit 7f9aa5d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@ function add_member() {
info "Successfully joined replica set"
}

info "Waiting for local MongoDB to accept connections ..."
wait_for_mongo_up &>/dev/null
info "Waiting for local MongoDB to accept connections on ${MEMBER_HOST} ..."
# connect using the host to ensure networking is working, otherwise
# the add_member call will fail.
wait_for_mongo_up ${MEMBER_HOST} &>/dev/null

# PetSet pods are named with a predictable name, following the pattern:
# $(petset name)-$(zero-based index)
Expand Down

0 comments on commit 7f9aa5d

Please sign in to comment.