Commit 16cd4ea1 by Feanil Patel

Don't initialize the mongo replicaset.

parent c282c7d7
...@@ -280,6 +280,7 @@ ...@@ -280,6 +280,7 @@
rs_config: "{{ MONGO_RS_CONFIG }}" rs_config: "{{ MONGO_RS_CONFIG }}"
run_once: true run_once: true
register: replset_status register: replset_status
when: initialize_replica_set
tags: tags:
- "manage" - "manage"
- "manage:db" - "manage:db"
...@@ -297,6 +298,7 @@ ...@@ -297,6 +298,7 @@
password: "{{ MONGO_ADMIN_PASSWORD }}" password: "{{ MONGO_ADMIN_PASSWORD }}"
register: status register: status
until: status.status is defined and 'PRIMARY' in status.status.members|map(attribute='stateStr')|list until: status.status is defined and 'PRIMARY' in status.status.members|map(attribute='stateStr')|list
when: initialize_replica_set
retries: 5 retries: 5
delay: 2 delay: 2
run_once: true run_once: true
...@@ -318,6 +320,7 @@ ...@@ -318,6 +320,7 @@
replica_set: "{{ MONGO_REPL_SET }}" replica_set: "{{ MONGO_REPL_SET }}"
with_items: "{{ MONGO_USERS }}" with_items: "{{ MONGO_USERS }}"
run_once: true run_once: true
when: initialize_replica_set
tags: tags:
- "manage" - "manage"
- "manage:db" - "manage:db"
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
"command": ". {{user `venv_dir`}}/bin/activate && ansible-playbook", "command": ". {{user `venv_dir`}}/bin/activate && ansible-playbook",
"inventory_groups": "jenkins_worker", "inventory_groups": "jenkins_worker",
"extra_arguments": [ "extra_arguments": [
"-e \"jenkins_edx_platform_version={{user `test_platform_version`}} NEWRELIC_LICENSE_KEY={{user `new_relic_key`}}\"", "-e \"jenkins_edx_platform_version={{user `test_platform_version`}} NEWRELIC_LICENSE_KEY={{user `new_relic_key`}} initialize_replica_set=false\"",
"-vvv" "-vvv"
] ]
}, { }, {
......
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