Generate tooz_url using the new os_url function

The new os_url function to compose generic URL has been added. This
updates the URL generation to use that generic function.

Depends-on: https://review.opendev.org/877898
Change-Id: Id693ed077426c8e8c57130eb6d131b6a2407cdc3
This commit is contained in:
Takashi Kajinami 2023-03-21 00:56:33 +09:00
parent 71e7c35e02
commit 9a1bbde73b

View File

@ -79,7 +79,16 @@ class openstack_integration::config (
$base_url = "${proto}://${ip_for_url}"
$keystone_auth_uri = "${base_url}:5000"
$keystone_admin_uri = "${base_url}:5000"
$tooz_url = "redis://:a_big_secret@${ip_for_url}:6379?ssl=${::openstack_integration::config::ssl}"
$tooz_url = os_url({
'scheme' => 'redis',
'password' => 'a_big_secret',
'host' => $ip_for_url,
'port' => '6379',
'query' => {
'ssl' => $ssl,
}
})
$ovn_nb_connection = "${ovn_proto}:${ip_for_url}:6641"
$ovn_sb_connection = "${ovn_proto}:${ip_for_url}:6642"