fix gather data for data interface

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

Change-Id: I2f65f28802581184cd47e7c37d21dd71e97a2c3f
This commit is contained in:
Christoph Albers 2021-01-25 10:47:56 +01:00
parent fd0bdcb7e5
commit 7190cf204c
No known key found for this signature in database
GPG Key ID: 8AA076DB0013468F
1 changed files with 6 additions and 1 deletions

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(',')