use new bind_address method from common

* use the bind_address method from common to get address for keystone

WIP specs and deps missing

Change-Id: I206c8cbab66dbeb708947cc9b95c8ecfdf6c2c14
This commit is contained in:
Jan Klare 2016-02-16 11:03:01 +01:00 committed by Jan Klare
parent 6585d611cb
commit d47ebc4e52
1 changed files with 9 additions and 6 deletions

View File

@ -88,8 +88,11 @@ when 'fernet'
end
public_bind_service = node['openstack']['bind_service']['public']['identity']
public_bind_address = bind_address public_bind_service
internal_bind_service = node['openstack']['bind_service']['internal']['identity']
internal_bind_address = bind_address internal_bind_service
admin_bind_service = node['openstack']['bind_service']['admin']['identity']
admin_bind_address = bind_address admin_bind_service
identity_admin_endpoint = admin_endpoint 'identity'
@ -236,9 +239,9 @@ end
#### Start of Apache specific work
apache_listen_public = { public_bind_service.host => [public_bind_service.port.to_s] }
apache_listen_internal = { internal_bind_service.host => [internal_bind_service.port.to_s] }
apache_listen_admin = { admin_bind_service.host => [admin_bind_service.port.to_s] }
apache_listen_public = { public_bind_address => [public_bind_service.port.to_s] }
apache_listen_internal = { internal_bind_address => [internal_bind_service.port.to_s] }
apache_listen_admin = { admin_bind_address => [admin_bind_service.port.to_s] }
apache_listen = Chef::Mixin::DeepMerge.merge(Chef::Mixin::DeepMerge.merge(apache_listen_public, apache_listen_internal), apache_listen_admin)
node.normal['apache']['listen'] =
@ -272,17 +275,17 @@ end
wsgi_apps = {
'public' => {
server_host: public_bind_service.host,
server_host: public_bind_address,
server_port: public_bind_service.port,
server_entry: server_entry_public
},
'internal' => {
server_host: internal_bind_service.host,
server_host: internal_bind_address,
server_port: internal_bind_service.port,
server_entry: server_entry_internal
},
'admin' => {
server_host: admin_bind_service.host,
server_host: admin_bind_address,
server_port: admin_bind_service.port,
server_entry: server_entry_admin
}