Add memcached_addresses lookup for keystone
Keystone granular task now requires memcached_addresses array, instead of memcache_roles in hiera. This fixes the issue where detach-keystone nodes deploy with memcache entries pointing to controller nodes. Change-Id: I111ee3ccbedc5db1b150e63f19bf8c59c9ff7c9d Closes-Bug: #1540388
This commit is contained in:
parent
0fcb14914f
commit
d96494d6d6
|
@ -46,19 +46,19 @@ if $detach_keystone_plugin {
|
|||
'standalone-keystone']
|
||||
$keystone_nodes = get_nodes_hash_by_roles($network_metadata,
|
||||
$keystone_roles)
|
||||
$keystone_address_map = get_node_to_ipaddr_map_by_network_role($keystone_nodes,
|
||||
'keystone/api')
|
||||
$keystone_nodes_ips = values($keystone_address_map)
|
||||
$keystone_address_map = get_node_to_ipaddr_map_by_network_role($keystone_nodes, 'keystone/api')
|
||||
$keystone_nodes_ips = ipsort(values($keystone_address_map))
|
||||
$keystone_nodes_names = keys($keystone_address_map)
|
||||
|
||||
case hiera('role', 'none') {
|
||||
/keystone/: {
|
||||
$corosync_roles = $keystone_roles
|
||||
$corosync_nodes = $keystone_nodes
|
||||
$memcache_roles = $keystone_roles
|
||||
$memcache_nodes = $keystone_nodes
|
||||
$deploy_vrouter = 'false'
|
||||
$keystone_enabled = 'true'
|
||||
$corosync_roles = $keystone_roles
|
||||
$corosync_nodes = $keystone_nodes
|
||||
$memcache_roles = $keystone_roles
|
||||
$memcache_nodes = $keystone_nodes
|
||||
$memcached_addresses = ipsort(keys(get_node_to_ipaddr_map_by_network_role($keystone_nodes, 'mgmt/memcache')
|
||||
$deploy_vrouter = 'false'
|
||||
$keystone_enabled = 'true'
|
||||
|
||||
#FIXME(mattymo): Allow plugins to depend on each other and update each other
|
||||
$detach_rabbitmq_plugin = hiera('detach-rabbitmq', undef)
|
||||
|
@ -133,6 +133,13 @@ memcache_roles:
|
|||
%> - <%= mrole %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
<% if @memcached_addresses -%>
|
||||
memcached_addresses:
|
||||
<%
|
||||
@memcached_addresses.each do |maddr|
|
||||
%> - <%= maddr %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
deploy_vrouter: <%= @deploy_vrouter %>
|
||||
<% if @amqp_hosts -%>
|
||||
amqp_hosts: <%= @amqp_hosts %>
|
||||
|
|
Loading…
Reference in New Issue