From 9da99e1f7c3de3c28011ef39966894a2735bee20 Mon Sep 17 00:00:00 2001 From: Andrew Bonney Date: 2020年7月15日 11:11:39 +0100 Subject: [PATCH] Use nova_management_address as a default VNC bind address Our installation uses separate networks for deployment and OpenStack management. The current default of 'ansible_host' for the VNC server results in it binding to our deployment network. Whilst this could be resolved via variable overrides, the majority of the defaults and templated options in this role use the Nova management address as the default choice for binding to. This patch changes the default VNC bind address to match the existing standard pattern, which should avoid the need for overrides in most cases. As a result, for our setup, when nova_management_address is identified and set in the OSA nova playbooks to match the OpenStack management network, the VNC server bind address gets set to the correct address. Change-Id: I9c5e2584f8f1d9bd76120b8b236e25f63804473a --- defaults/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 216b9328..970ae9bf 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -218,8 +218,8 @@ nova_novncproxy_proto: "{{ openstack_service_publicuri_proto | default('http') } nova_novncproxy_port: 6080 nova_novncproxy_base_uri: "{{ nova_novncproxy_proto }}://{{ external_lb_vip_address }}:{{ nova_novncproxy_port }}" nova_novncproxy_base_url: "{{ nova_novncproxy_base_uri }}/vnc_lite.html" -nova_novncproxy_vncserver_proxyclient_address: "{{ ansible_host }}" -nova_novncproxy_vncserver_listen: "{{ ansible_host }}" +nova_novncproxy_vncserver_proxyclient_address: "{{ (nova_management_address == 'localhost') | ternary('127.0.0.1', nova_management_address) }}" +nova_novncproxy_vncserver_listen: "{{ (nova_management_address == 'localhost') | ternary('127.0.0.1', nova_management_address) }}" nova_novncproxy_agent_enabled: True nova_novncproxy_git_repo: "{{ novncproxy_git_repo | default('https://github.com/novnc/noVNC') }}" nova_novncproxy_git_install_branch: "{{ novncproxy_git_install_branch | default('master') }}"

AltStyle によって変換されたページ (->オリジナル) /