Commit 46055e12 by Jeff LaJoie

add log, swap role to readwrite

parent 986e6710
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment