diff options
Diffstat (limited to 'ansible/roles/mongodb/templates/bootstrap_cluster.js.j2')
| -rw-r--r-- | ansible/roles/mongodb/templates/bootstrap_cluster.js.j2 | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/ansible/roles/mongodb/templates/bootstrap_cluster.js.j2 b/ansible/roles/mongodb/templates/bootstrap_cluster.js.j2 deleted file mode 100644 index 05ea1c655..000000000 --- a/ansible/roles/mongodb/templates/bootstrap_cluster.js.j2 +++ /dev/null @@ -1,14 +0,0 @@ -printjson(rs.initiate( - { - "_id" : "{{ mongodb_replication_set_name }}", - "version" : 1, - "members" : [ - {% for host in groups["mongodb"] %} - { - "_id" : {{ loop.index }}, - "host" : "{{ hostvars[host]['ansible_' + storage_interface]['ipv4']['address'] }}:{{ mongodb_port }}" - }{% if not loop.last %},{% endif %} - {% endfor %} - ] - } -)) |
