Skip to content

Commit

Permalink
check mongo status via host, not localhost to ensure remote accessibi…
Browse files Browse the repository at this point in the history
…lity
  • Loading branch information
bparees committed Jan 3, 2017
1 parent ddcf403 commit 3563fa6
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,11 @@ 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
#wait_for_mongo_up &>/dev/null

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

0 comments on commit 3563fa6

Please sign in to comment.