diff options
author | carey.xu <carey.xuhan@huawei.com> | 2015-12-30 14:37:12 +0800 |
---|---|---|
committer | carey xu <carey.xuhan@huawei.com> | 2015-12-31 07:41:09 +0000 |
commit | 8810e8a18e59e3c23fbd3e583fe6e347158ef464 (patch) | |
tree | 02812077ee339d80510ad704c902937639f1d6f8 /deploy/adapters/ansible/roles/database/templates/wsrep.cnf | |
parent | bb77d2e1d5a41da912b8d3a09c825d74ead18cb1 (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/wsrep.cnf')
-rw-r--r-- | deploy/adapters/ansible/roles/database/templates/wsrep.cnf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/database/templates/wsrep.cnf b/deploy/adapters/ansible/roles/database/templates/wsrep.cnf index 643792ab..4dc6fb7b 100644 --- a/deploy/adapters/ansible/roles/database/templates/wsrep.cnf +++ b/deploy/adapters/ansible/roles/database/templates/wsrep.cnf @@ -23,7 +23,11 @@ wsrep_provider_options="gcache.size=1024M" wsrep_cluster_name="my_wsrep_cluster" # Group communication system handle +{% if haproxy_hosts|length == 1 %} +wsrep_cluster_address=gcomm:// +{% else %} wsrep_cluster_address=gcomm://{{ haproxy_hosts.values()|join(",") }} +{% endif %} # Human-readable node name (non-unique). Hostname by default. #wsrep_node_name= |