diff --git a/manifests/neutron.pp b/manifests/neutron.pp index 14ee61c80..8eb73a680 100644 --- a/manifests/neutron.pp +++ b/manifests/neutron.pp @@ -246,8 +246,8 @@ class openstack_integration::neutron ( # NOTE(tkajinam): neutron::plugins::ml2::ovn requires neutron::plugins::ml2, # thus it should be included after neutron::plugins::ml2. class { 'neutron::plugins::ml2::ovn': - ovn_nb_connection => 'tcp:127.0.0.1:6641', - ovn_sb_connection => 'tcp:127.0.0.1:6642', + ovn_nb_connection => "tcp:${::openstack_integration::config::ip_for_url}:6641", + ovn_sb_connection => "tcp:${::openstack_integration::config::ip_for_url}:6642", ovn_metadata_enabled => true, } } @@ -281,6 +281,7 @@ class openstack_integration::neutron ( shared_secret => 'a_big_secret', metadata_host => $metadata_host, metadata_protocol => $metadata_protocol, + ovn_sb_connection => "tcp:${::openstack_integration::config::ip_for_url}:6642", } } else { class { 'neutron::agents::metadata': diff --git a/manifests/octavia.pp b/manifests/octavia.pp index edd775f24..1d1234639 100644 --- a/manifests/octavia.pp +++ b/manifests/octavia.pp @@ -120,8 +120,8 @@ class openstack_integration::octavia ( } $enabled_provider_agents = 'ovn' class { 'octavia::provider::ovn': - ovn_nb_connection => 'tcp:127.0.0.1:6641', - ovn_sb_connection => 'tcp:127.0.0.1:6642', + ovn_nb_connection => "tcp:${::openstack_integration::config::ip_for_url}:6641", + ovn_sb_connection => "tcp:${::openstack_integration::config::ip_for_url}:6642", } } else{ $enabled_provider_drivers = $::os_service_default diff --git a/manifests/ovn.pp b/manifests/ovn.pp index be5668942..91b4c51c6 100644 --- a/manifests/ovn.pp +++ b/manifests/ovn.pp @@ -6,9 +6,11 @@ class openstack_integration::ovn( include openstack_integration::config include openstack_integration::params - class { 'ovn::northd': } + class { 'ovn::northd': + dbs_listen_ip => $::openstack_integration::config::ip_for_url, + } class { 'ovn::controller': - ovn_remote => 'tcp:127.0.0.1:6642', + ovn_remote => "tcp:${::openstack_integration::config::ip_for_url}:6642", ovn_encap_ip => '127.0.0.1', ovn_bridge_mappings => ['external:br-ex'], ovn_cms_options => 'enable-chassis-as-gw',