Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check mongo status via host, not localhost to ensure remote accessibility #217

Merged
merged 1 commit into from
Jan 4, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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