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
46055e12
Commit
46055e12
authored
Mar 07, 2017
by
Jeff LaJoie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log, swap role to readwrite
parent
986e6710
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
playbooks/roles/mongo_2_6/defaults/main.yml
+1
-1
playbooks/roles/mongo_2_6/tasks/main.yml
+7
-4
No files found.
playbooks/roles/mongo_2_6/defaults/main.yml
View file @
46055e12
...
...
@@ -23,7 +23,7 @@ MONGO_USERS:
-
user
:
cs_comments_service
password
:
password
database
:
cs_comments_service
roles
:
admin
roles
:
readWrite
-
user
:
edxapp
password
:
password
database
:
edxapp
...
...
playbooks/roles/mongo_2_6/tasks/main.yml
View file @
46055e12
...
...
@@ -14,7 +14,7 @@
tags
:
-
install
-
install:base
-
name
:
Remove mongo 2.4 if present
apt
:
pkg
:
mongodb-10gen
...
...
@@ -25,7 +25,7 @@
tags
:
-
install
-
install:base
-
name
:
Install python pymongo for mongo_user ansible module
pip
:
name
:
pymongo
...
...
@@ -149,7 +149,7 @@
-
name
:
Wait for mongo server to start
wait_for
:
port
:
27017
port
:
27017
delay
:
2
tags
:
-
manage
...
...
@@ -200,6 +200,9 @@
# file: path=/tmp/repset_init.js state=absent
# when: MONGO_CLUSTERED
-
debug
:
msg
:
"
user:
{{
MONGO_ADMIN_USER
}}
password
{{
MONGO_ADMIN_PASSWORD
}}"
-
name
:
Create a mongodb user
mongodb_user
:
database
:
"
{{
item.database
}}"
...
...
@@ -257,7 +260,7 @@
-
install:configuration
-
name
:
Schedule backup-mongo-to-3s crontab
cron
:
cron
:
name
:
"
backup-mongo-to-s3"
job
:
"
/edx/bin/backup-mongo-to-s3.sh"
backup
:
yes
...
...
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