From e30222057e0322b7c2e76d7fcd7bcd5f5e173688 Mon Sep 17 00:00:00 2001 From: Jan Klare Date: Tue, 16 Feb 2016 14:40:44 +0100 Subject: [PATCH] use new bind_address method from common * use bind_address method to get address from interface or fallback to configured host Change-Id: Ib181edbd003f6ff703389871666671249884c542 --- recipes/default.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/default.rb b/recipes/default.rb index 1ccafa30..c7104147 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -94,6 +94,7 @@ auth_url = db_user = node['openstack']['db']['network']['username'] db_pass = get_password 'db', 'neutron' bind_service = node['openstack']['bind_service']['all']['network'] +bind_service_address = bind_address bind_service # The auth_url in nova section follows auth_plugin nova_auth_url = nil @@ -110,7 +111,7 @@ node.default['openstack']['network']['conf'].tap do |conf| if node['openstack']['network']['syslog']['use'] conf['DEFAULT']['log_config'] = '/etc/openstack/logging.conf' end - conf['DEFAULT']['bind_host'] = bind_service.host + conf['DEFAULT']['bind_host'] = bind_service_address conf['DEFAULT']['bind_port'] = bind_service.port conf['nova']['auth_url'] = nova_auth_url conf['keystone_authtoken']['auth_url'] = auth_url