cbickel commented on a change in pull request #2810: Add couchdb clustering
URL:
https://github.com/apache/incubator-openwhisk/pull/2810#discussion_r147390282
##########
File path: ansible/roles/couchdb/tasks/deploy.yml
##########
@@ -1,9 +1,9 @@
---
# This role will run a CouchDB server on the db group
-- name: "Set node name to couchdb{{ groups['db'].index(inventory_hostname) }}"
+- name: "Set the coordinator to the first node"
set_fact:
- nodeName: "couchdb{{ groups['db'].index(inventory_hostname) }}"
+ coordinator: "{{ groups['db'][0] }}"
Review comment:
You should use the `ansible_host` of groups['db'][0] here. Otherwise we are
not able to deploy two dbs on one machine (which is very useful for testing)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services