mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00

- Setup single/multi node BigchainDB cluster using - Vagrant - Ansible - Updated documentation
7 lines
308 B
Django/Jinja
7 lines
308 B
Django/Jinja
rs.initiate( { _id : "{{ replica_set_name }}", members: [ { _id : 0, host :"{{ bdb_hosts[bdb_hosts|length-1]['name'] }}:{{ mongodb_port }}" } ] } )
|
|
sleep(5000);
|
|
{% for host in bdb_hosts %}
|
|
{%- if ansible_hostname != host["name"] -%}
|
|
rs.add("{{ host["name"] }}:{{ mongodb_port }}");
|
|
{% endif %}
|
|
{%- endfor -%} |