Browse Source

fix gather data for data interface

- get information from the actual node attributes instead of the
  executing node

Change-Id: I2f65f28802581184cd47e7c37d21dd71e97a2c3f
changes/89/772289/1
Christoph Albers 3 months ago
parent
commit
7190cf204c
No known key found for this signature in database GPG Key ID: 8AA076DB0013468F
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      recipes/mariadb-cluster-server.rb

+ 6
- 1
recipes/mariadb-cluster-server.rb View File

@ -41,7 +41,12 @@ else
family = node['openstack']['endpoints']['family']
cluster_nodes_addresses = []
cluster_nodes.each do |cluster_node|
address = address_for bind_db['interface'], family, cluster_node
bind_db_cluster_node = cluster_node['openstack']['bind_service']['db']
if bind_db_cluster_node['interface'].nil?
Chef::Log.fatal('Need to specify interface to bind to.')
raise
end
address = address_for bind_db_cluster_node['interface'], family, cluster_node
cluster_nodes_addresses << address
end
cluster_address = cluster_nodes_addresses.join(',')


Loading…
Cancel
Save