Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
96b465ea
Commit
96b465ea
authored
Jun 09, 2016
by
Kevin Falcone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port tasks that wait for mongo to start and the cluster to have PRIMARY
parent
1a5c96fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
playbooks/edx-east/mongo_upgrade_hidden_secondaries.yml
+14
-0
No files found.
playbooks/edx-east/mongo_upgrade_hidden_secondaries.yml
View file @
96b465ea
...
@@ -49,3 +49,17 @@
...
@@ -49,3 +49,17 @@
force
:
yes
force
:
yes
update_cache
:
yes
update_cache
:
yes
with_items
:
mongodb_debian_pkgs
with_items
:
mongodb_debian_pkgs
-
name
:
wait for mongo server to start
wait_for
:
port
:
27017
delay
:
2
-
name
:
Wait for the replica set to update and (if needed) elect a primary
mongodb_rs_status
:
host
:
"
{{
ansible_default_ipv4['address']
}}"
username
:
"
{{
MONGO_ADMIN_USER
}}"
password
:
"
{{
MONGO_ADMIN_PASSWORD
}}"
register
:
status
until
:
status.status is defined and 'PRIMARY' in status.status.members|map(attribute='stateStr')|list
retries
:
5
delay
:
2
run_once
:
true
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment