Commit 77d8675a by John Jarvis

Merge pull request #386 from edx/jarv/mongo-clusterd

mongo_clustered defaults to !!null
parents 01b1bcde 25f81653
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
mode=0600 mode=0600
owner=mongodb owner=mongodb
group=mongodb group=mongodb
when: MONGO_CLUSTERED is defined when: MONGO_CLUSTERED
- name: mongo | copy configuration template - name: mongo | copy configuration template
template: src=mongodb.conf.j2 dest=/etc/mongodb.conf backup=yes template: src=mongodb.conf.j2 dest=/etc/mongodb.conf backup=yes
...@@ -60,11 +60,11 @@ ...@@ -60,11 +60,11 @@
- name: mongo | Create the file to initialize the mongod replica set - name: mongo | Create the file to initialize the mongod replica set
template: src=repset_init.j2 dest=/tmp/repset_init.js template: src=repset_init.j2 dest=/tmp/repset_init.js
when: MONGO_CLUSTERED is defined when: MONGO_CLUSTERED
- name: mongo | Initialize the replication set - name: mongo | Initialize the replication set
shell: /usr/bin/mongo /tmp/repset_init.js shell: /usr/bin/mongo /tmp/repset_init.js
when: MONGO_CLUSTERED is defined when: MONGO_CLUSTERED
# Ignoring errors here because slave instances will fail this command # Ignoring errors here because slave instances will fail this command
# since slaveOk is false in ansible 1.3. # since slaveOk is false in ansible 1.3.
......
...@@ -21,7 +21,7 @@ port = {{ mongo_port }} ...@@ -21,7 +21,7 @@ port = {{ mongo_port }}
# Enable journaling, http://www.mongodb.org/display/DOCS/Journaling # Enable journaling, http://www.mongodb.org/display/DOCS/Journaling
journal=true journal=true
{% if MONGO_CLUSTERED is defined %} {% if MONGO_CLUSTERED %}
keyFile = {{ mongo_key_file }} keyFile = {{ mongo_key_file }}
replSet = {{ mongo_repl_set }} replSet = {{ mongo_repl_set }}
{% endif %} {% endif %}
......
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