diff options
author | your name <email@163.com> | 2015-09-09 03:26:11 -0400 |
---|---|---|
committer | your name <email@163.com> | 2015-09-09 03:26:11 -0400 |
commit | 72039e915d1fc960bd0d7fccd910ea282d61bee7 (patch) | |
tree | 60452129b1b9f3c3419b4a29a038f5f0cbade5f7 /deploy/adapters/ansible/roles/database/templates | |
parent | cf87d3067a63cb8be315a3addfd9c27d86be3b5a (diff) |
Compass Netconfig optimization
Change-Id: Icbcfc7d794623436f22be5f6763b212a25d4fac7
JIRA: COMPASS-30
Diffstat (limited to 'deploy/adapters/ansible/roles/database/templates')
-rw-r--r-- | deploy/adapters/ansible/roles/database/templates/wsrep.cnf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/database/templates/wsrep.cnf b/deploy/adapters/ansible/roles/database/templates/wsrep.cnf index 81699796..6c14b155 100644 --- a/deploy/adapters/ansible/roles/database/templates/wsrep.cnf +++ b/deploy/adapters/ansible/roles/database/templates/wsrep.cnf @@ -48,7 +48,7 @@ wsrep_provider={{ wsrep_provider_file }} wsrep_cluster_name="my_wsrep_cluster" # Group communication system handle -wsrep_cluster_address=gcomm://{{ HA_CLUSTER[inventory_hostname] }} +wsrep_cluster_address=gcomm://{{ haproxy_hosts.values()|join(",") }} # Human-readable node name (non-unique). Hostname by default. #wsrep_node_name= @@ -56,7 +56,7 @@ wsrep_cluster_address=gcomm://{{ HA_CLUSTER[inventory_hostname] }} # Base replication <address|hostname>[:port] of the node. # The values supplied will be used as defaults for state transfer receiving, # listening ports and so on. Default: address of the first network interface. -wsrep_node_address={{ hostvars[inventory_hostname]['ansible_' + INTERNAL_INTERFACE].ipv4.address }} +wsrep_node_address={{ internal_ips[inventory_hostname] }} # Address for incoming client connections. Autodetect by default. #wsrep_node_incoming_address= |