FUEL-335. Excluded current hostname from galera gcomm string.
This commit is contained in:
parent
acd3d1c4e3
commit
7156bc5bd8
@ -2,7 +2,7 @@ class galera::galera_master_final_config($master_ip, $node_addresses) {
|
||||
# This class changes config file on first Galera node to allow safe restart of this node without leaving cluster.
|
||||
|
||||
if ! $master_ip {
|
||||
$galera_gcomm_string = inline_template("<%= @node_addresses.collect {|ip| ip + ':' + 4567.to_s }.join ',' %>")
|
||||
$galera_gcomm_string = inline_template("<%= @node_addresses.reject{|ip| ip == hostname }.collect {|ip| ip + ':' + 4567.to_s }.join ',' %>")
|
||||
$check_galera = "show status like 'wsrep_cluster_size';"
|
||||
$mysql_user = $::galera::params::mysql_user
|
||||
$mysql_password = $::galera::params::mysql_password
|
||||
|
@ -53,7 +53,7 @@ wsrep_provider_options="pc.ignore_sb = no;ist.recv_addr=<%= node_address %>;gmca
|
||||
wsrep_cluster_name="<%= cluster_name -%>"
|
||||
<% if setup_multiple_gcomm -%>
|
||||
<% if master_ip -%>
|
||||
wsrep_cluster_address="gcomm://<%= @node_addresses.collect {|ip| ip + ':' + 4567.to_s }.join ',' %>"
|
||||
wsrep_cluster_address="gcomm://<%= @node_addresses.reject{|ip| ip == hostname }.collect {|ip| ip + ':' + 4567.to_s }.join ',' %>"
|
||||
<% else -%>
|
||||
wsrep_cluster_address="gcomm://"
|
||||
<% end -%>
|
||||
|
Loading…
Reference in New Issue
Block a user