Neutron: Enable Designate integration

External DNS integration with Designate is usually used in deployments
with both neutron and designate enabled.

Change-Id: Icfe6b03c99a0fe96c56a53064dad953ad90e17aa
This commit is contained in:
Takashi Kajinami 2024-12-02 22:19:07 +09:00
parent bbdcee55b6
commit e38532862c
2 changed files with 15 additions and 1 deletions

View File

@ -54,7 +54,8 @@ include openstack_integration::keystone
include openstack_integration::glance include openstack_integration::glance
class { 'openstack_integration::neutron': class { 'openstack_integration::neutron':
driver => 'ovn', driver => 'ovn',
designate_enabled => true,
} }
include openstack_integration::placement include openstack_integration::placement
class { 'openstack_integration::nova': class { 'openstack_integration::nova':

View File

@ -37,6 +37,10 @@
# (optional) Flag to enable networking-baremetal # (optional) Flag to enable networking-baremetal
# Defaults to false. # Defaults to false.
# #
# [*designate_enabled*]
# (optional) Flag to enable external dns integration with Designate
# Defaults to false.
#
# [*notification_topics*] # [*notification_topics*]
# (optional) AMQP topic used for OpenStack notifications # (optional) AMQP topic used for OpenStack notifications
# Defaults to $facts['os_service_default']. # Defaults to $facts['os_service_default'].
@ -51,6 +55,7 @@ class openstack_integration::neutron (
$l2gw_enabled = false, $l2gw_enabled = false,
$bgp_dragent_enabled = false, $bgp_dragent_enabled = false,
$baremetal_enabled = false, $baremetal_enabled = false,
$designate_enabled = false,
$notification_topics = $facts['os_service_default'], $notification_topics = $facts['os_service_default'],
) { ) {
@ -597,6 +602,14 @@ Environment=OS_NEUTRON_CONFIG_FILES=${join($neutron_conf_files, ';')}",
Anchor['ironic::service::end'] -> Service['ironic-neutron-agent-service'] Anchor['ironic::service::end'] -> Service['ironic-neutron-agent-service']
} }
if $designate_enabled {
class { 'neutron::designate':
password => 'a_big_secret',
url => "${::openstack_integration::config::base_url}:9001",
auth_url => $::openstack_integration::config::keystone_admin_uri,
}
}
class { 'neutron::server::notifications::nova': class { 'neutron::server::notifications::nova':
auth_url => $::openstack_integration::config::keystone_admin_uri, auth_url => $::openstack_integration::config::keystone_admin_uri,
password => 'a_big_secret', password => 'a_big_secret',