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
535c541d
Commit
535c541d
authored
Oct 31, 2017
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a new var for configuring a replica set.
parent
6cdbdaba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
playbooks/roles/mongo_3_2/defaults/main.yml
+3
-0
playbooks/roles/mongo_3_2/tasks/main.yml
+3
-3
No files found.
playbooks/roles/mongo_3_2/defaults/main.yml
View file @
535c541d
...
...
@@ -26,6 +26,9 @@ mongodb_debian_pkgs:
-
"
mongodb-org-tools={{
mongo_version
}}"
mongo_configure_replica_set
:
true
# Vars Meant to be overridden
MONGO_ADMIN_USER
:
'
admin'
MONGO_ADMIN_PASSWORD
:
'
password'
...
...
playbooks/roles/mongo_3_2/tasks/main.yml
View file @
535c541d
...
...
@@ -280,7 +280,7 @@
rs_config
:
"
{{
MONGO_RS_CONFIG
}}"
run_once
:
true
register
:
replset_status
when
:
initializ
e_replica_set
when
:
mongo_configur
e_replica_set
tags
:
-
"
manage"
-
"
manage:db"
...
...
@@ -298,7 +298,7 @@
password
:
"
{{
MONGO_ADMIN_PASSWORD
}}"
register
:
status
until
:
status.status is defined and 'PRIMARY' in status.status.members|map(attribute='stateStr')|list
when
:
initializ
e_replica_set
when
:
mongo_configur
e_replica_set
retries
:
5
delay
:
2
run_once
:
true
...
...
@@ -320,7 +320,7 @@
replica_set
:
"
{{
MONGO_REPL_SET
}}"
with_items
:
"
{{
MONGO_USERS
}}"
run_once
:
true
when
:
initializ
e_replica_set
when
:
mongo_configur
e_replica_set
tags
:
-
"
manage"
-
"
manage:db"
...
...
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