Commit fba06383 by Kevin Falcone

Make sure the journal is owned by mongodb

We mount our journals from a second volume under mongo_data_dir which
means that they stay owned by root and mongo silently fails to start.
parent fad25d51
......@@ -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: "http://docs.mongodb.org/10gen-gpg-key.asc"
......
......@@ -45,6 +45,7 @@
- "{{ mongo_data_dir }}"
- "{{ mongo_dbpath }}"
- "{{ mongo_log_dir }}"
- "{{ mongo_journal_dir }}"
- name: stop mongod service
service: name=mongod state=stopped
......
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