From ca83b65ea2876cd2d78911631646e131e83e999f Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Thu, 11 Jul 2019 12:35:07 +0100 Subject: [PATCH] Add neutron_api_bind_address default variable This defaults to 0.0.0.0 but can be overriden in a real deployment where we know the correct management network ip address for the neutron api service to bind to. Change-Id: I1c37fed8796b2a133085dc348e767b1793ab2851 --- defaults/main.yml | 1 + templates/neutron.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 939f07b5..1b58339a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -279,6 +279,7 @@ neutron_service_user_name: neutron neutron_service_name: neutron neutron_service_type: network neutron_service_description: "OpenStack Networking" +neutron_api_bind_address: 0.0.0.0 neutron_service_port: 9696 neutron_service_proto: http neutron_service_publicuri_proto: "{{ openstack_service_publicuri_proto | default(neutron_service_proto) }}" diff --git a/templates/neutron.conf.j2 b/templates/neutron.conf.j2 index 7e272351..79c17b7d 100644 --- a/templates/neutron.conf.j2 +++ b/templates/neutron.conf.j2 @@ -78,7 +78,7 @@ ha_network_physical_name = {{ neutron_provider_networks.network_mappings_list[0] # API bind_port = 9696 -bind_host = 0.0.0.0 +bind_host = {{ neutron_api_bind_address }} # Workers api_workers = {{ neutron_api_workers | default(neutron_api_threads) }}