Commit af536c17 by Kevin Falcone

Merge pull request #2317 from edx/jibsheet/mongo-bugfix-backport

These are changes from the mongo_3_0.yml play needed to build forums mongo clusters
parents 2b9fb4aa 94efaa04
......@@ -9,6 +9,7 @@ pymongo_version: 2.7.2
mongo_data_dir: "{{ COMMON_DATA_DIR }}/mongo"
mongo_log_dir: "{{ COMMON_LOG_DIR }}/mongo"
mongo_journal_dir: "{{ COMMON_DATA_DIR }}/mongo/mongodb/journal"
mongo_user: mongodb
MONGODB_APT_KEY: "7F0CEB10"
......
......@@ -45,6 +45,7 @@
- "{{ mongo_data_dir }}"
- "{{ mongo_dbpath }}"
- "{{ mongo_log_dir }}"
- "{{ mongo_journal_dir }}"
- name: stop mongod service
service: name=mongod state=stopped
......@@ -105,7 +106,7 @@
login_user={{ MONGO_ADMIN_USER }}
login_password={{ MONGO_ADMIN_PASSWORD }}
name={{ item.user }}
password={{ item.password }}
password="{{ item.password }}"
roles={{ item.roles }}
state=present
with_items: MONGO_USERS
......@@ -117,7 +118,7 @@
login_user={{ MONGO_ADMIN_USER }}
login_password={{ MONGO_ADMIN_PASSWORD }}
name={{ item.user }}
password={{ item.password }}
password="{{ item.password }}"
roles={{ item.roles }}
state=present
replica_set={{ mongo_repl_set }}
......
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