summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/database/templates/replica.js
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2015-12-30 14:37:12 +0800
committercarey xu <carey.xuhan@huawei.com>2015-12-31 07:41:09 +0000
commit8810e8a18e59e3c23fbd3e583fe6e347158ef464 (patch)
tree02812077ee339d80510ad704c902937639f1d6f8 /deploy/adapters/ansible/roles/database/templates/replica.js
parentbb77d2e1d5a41da912b8d3a09c825d74ead18cb1 (diff)
bugfix: uncomment ceph-deploy
JIRA: COMPASS-229 Change-Id: I35fe51c5c48838f7a16338459a50807a4c193697 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/database/templates/replica.js')
-rw-r--r--deploy/adapters/ansible/roles/database/templates/replica.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/roles/database/templates/replica.js b/deploy/adapters/ansible/roles/database/templates/replica.js
index 3282cd6a..d19db50d 100644
--- a/deploy/adapters/ansible/roles/database/templates/replica.js
+++ b/deploy/adapters/ansible/roles/database/templates/replica.js
@@ -1,7 +1,7 @@
config = { _id:"compass", members:[
{% for host in haproxy_hosts.values() %}
{% set pair = '%s:27017' % host %}
- {_id:{{ loop.index0 }},host:"{{ pair }}"},
+ {_id:{{ loop.index0 }},host:"{{ pair }}",priority:{{ haproxy_hosts|length - loop.index0 }}},
{% endfor %}
]
};