commit 578d97f8ceaeb26c4f8a76d02edb40c7fe0cfe1e Author: Jonathan Rosser Date: Wed Sep 23 15:06:44 2020 +0100 Bind novncproxy host and port to defined variables These were previously the defaults and resulted in the novncproxy port not being adustable by the expected variable, and the novncproxy process always bound to 0.0.0.0 Change-Id: Ic4cd75ff8fa88b3bfa37fea0f8ce0438611ba1db diff --git a/defaults/main.yml b/defaults/main.yml index 543c6ed..06a00a3 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -218,6 +218,7 @@ nova_spicehtml5_git_install_branch: master ## Nova novnc nova_novncproxy_proto: "{{ openstack_service_publicuri_proto | default('http') }}" nova_novncproxy_port: 6080 +nova_novncproxy_host: "{{ openstack_service_bind_address | default('0.0.0.0') }}" 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: "{{ (nova_management_address == 'localhost') | ternary('127.0.0.1', nova_management_address) }}" diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index 1b9ea61..10731e2 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -90,6 +90,8 @@ enabled = False [vnc] enabled = {{ nova_novncproxy_agent_enabled }} novncproxy_base_url = {{ nova_novncproxy_base_url }} +novncproxy_host = {{ nova_novncproxy_host }} +novncproxy_port = {{ nova_novncproxy_port }} server_listen = {{ nova_novncproxy_vncserver_listen }} server_proxyclient_address = {{ nova_novncproxy_vncserver_proxyclient_address }}