Fix incomplete host configurations for VNC access

We should use the appropriate host value according to the IP versions
used in the test scenario.

Change-Id: If9741bb1ef5680d4c54ae9286f2a596f40fd0dbb
This commit is contained in:
Takashi Kajinami 2024-11-02 21:15:02 +09:00
parent c39f49ed70
commit 92c3ea87d1

View File

@ -149,6 +149,9 @@ class openstack_integration::nova (
notification_driver => 'messagingv2', notification_driver => 'messagingv2',
notify_on_state_change => 'vm_and_task_state', notify_on_state_change => 'vm_and_task_state',
notification_topics => $notification_topics, notification_topics => $notification_topics,
ssl_only => $::openstack_integration::config::ssl,
key => "/etc/nova/ssl/private/${facts['networking']['fqdn']}.pem",
cert => $::openstack_integration::params::cert_path,
} }
class { 'nova::api': class { 'nova::api':
api_bind_address => $::openstack_integration::config::host, api_bind_address => $::openstack_integration::config::host,
@ -215,9 +218,12 @@ class openstack_integration::nova (
} }
} }
class { 'nova::compute': class { 'nova::compute':
vnc_enabled => true, vnc_enabled => true,
instance_usage_audit => true, instance_usage_audit => true,
instance_usage_audit_period => 'hour', instance_usage_audit_period => 'hour',
vncproxy_protocol => $::openstack_integration::config::proto,
vncproxy_host => $::openstack_integration::config::host,
vncserver_proxyclient_address => $::openstack_integration::config::host,
} }
# NOTE(tkajinam): In Ubuntu, libvirtd-tcp.socket fails to start because of # NOTE(tkajinam): In Ubuntu, libvirtd-tcp.socket fails to start because of
@ -242,6 +248,7 @@ class openstack_integration::nova (
cpu_mode => $libvirt_cpu_mode, cpu_mode => $libvirt_cpu_mode,
images_type => $images_type, images_type => $images_type,
manage_libvirt_services => false, manage_libvirt_services => false,
vncserver_listen => $::openstack_integration::config::host,
} }
class { 'nova::compute::libvirt::services': } class { 'nova::compute::libvirt::services': }
class { 'nova::compute::libvirt::networks': } class { 'nova::compute::libvirt::networks': }