default: support configuring keystonemiddleware for memcached

network counterpart of the recent change to openstack-compute.

Signed-off-by: Marek Szuba <m.szuba@gsi.de>
Change-Id: I717bd8f1df136ceef1da519faaa18a1ef62c02cb
This commit is contained in:
Marek Szuba 2021-09-06 12:09:41 +01:00
parent 222df62ab3
commit b8a2ca3733
No known key found for this signature in database
GPG Key ID: 28C43B28551E3201
1 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,8 @@ if node['openstack']['mq']['service_type'] == 'rabbit'
node.default['openstack']['network']['conf_secrets']['DEFAULT']['transport_url'] = rabbit_transport_url 'network'
end
memcache_servers = memcached_servers.join ','
identity_endpoint = internal_endpoint 'identity'
auth_url = identity_endpoint.to_s
@ -84,6 +86,9 @@ node.default['openstack']['network']['conf'].tap do |conf|
conf['DEFAULT']['bind_port'] = bind_service['port']
conf['nova']['auth_url'] = auth_url
conf['keystone_authtoken']['auth_url'] = auth_url
unless memcache_servers.empty?
conf['keystone_authtoken']['memcached_servers'] = memcache_servers
end
end
# define secrets that are needed in the neutron.conf.erb