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 ...@@ -9,6 +9,7 @@ pymongo_version: 2.7.2
mongo_data_dir: "{{ COMMON_DATA_DIR }}/mongo" mongo_data_dir: "{{ COMMON_DATA_DIR }}/mongo"
mongo_log_dir: "{{ COMMON_LOG_DIR }}/mongo" mongo_log_dir: "{{ COMMON_LOG_DIR }}/mongo"
mongo_journal_dir: "{{ COMMON_DATA_DIR }}/mongo/mongodb/journal"
mongo_user: mongodb mongo_user: mongodb
MONGODB_APT_KEY: "7F0CEB10" MONGODB_APT_KEY: "7F0CEB10"
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
- "{{ mongo_data_dir }}" - "{{ mongo_data_dir }}"
- "{{ mongo_dbpath }}" - "{{ mongo_dbpath }}"
- "{{ mongo_log_dir }}" - "{{ mongo_log_dir }}"
- "{{ mongo_journal_dir }}"
- name: stop mongod service - name: stop mongod service
service: name=mongod state=stopped service: name=mongod state=stopped
...@@ -105,7 +106,7 @@ ...@@ -105,7 +106,7 @@
login_user={{ MONGO_ADMIN_USER }} login_user={{ MONGO_ADMIN_USER }}
login_password={{ MONGO_ADMIN_PASSWORD }} login_password={{ MONGO_ADMIN_PASSWORD }}
name={{ item.user }} name={{ item.user }}
password={{ item.password }} password="{{ item.password }}"
roles={{ item.roles }} roles={{ item.roles }}
state=present state=present
with_items: MONGO_USERS with_items: MONGO_USERS
...@@ -117,7 +118,7 @@ ...@@ -117,7 +118,7 @@
login_user={{ MONGO_ADMIN_USER }} login_user={{ MONGO_ADMIN_USER }}
login_password={{ MONGO_ADMIN_PASSWORD }} login_password={{ MONGO_ADMIN_PASSWORD }}
name={{ item.user }} name={{ item.user }}
password={{ item.password }} password="{{ item.password }}"
roles={{ item.roles }} roles={{ item.roles }}
state=present state=present
replica_set={{ mongo_repl_set }} 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