Merge "Add and document $NOVA_VNC_ENABLED for forcing VNC on"
This commit is contained in:
commit
a7a2b883b2
@ -184,7 +184,13 @@ SERVICE_HOST=192.168.42.11
|
||||
MYSQL_HOST=192.168.42.11
|
||||
RABBIT_HOST=192.168.42.11
|
||||
GLANCE_HOSTPORT=192.168.42.11:9292
|
||||
ENABLED_SERVICES=n-cpu,n-net,n-api,c-sch,c-api,c-vol</pre>
|
||||
ENABLED_SERVICES=n-cpu,n-net,n-api,c-sch,c-api,c-vol
|
||||
NOVA_VNC_ENABLED=True
|
||||
NOVNCPROXY_URL="http://192.168.42.11:6080/vnc_auto.html"
|
||||
VNCSERVER_LISTEN=$HOST_IP
|
||||
VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN
|
||||
</pre>
|
||||
|
||||
<!-- save for vlan
|
||||
FLAT_INTERFACE=eth0.926
|
||||
-->
|
||||
|
6
lib/nova
6
lib/nova
@ -84,6 +84,10 @@ GUEST_INTERFACE_DEFAULT=$(ip link \
|
||||
| grep ^[ep] \
|
||||
| head -1)
|
||||
|
||||
# $NOVA_VNC_ENABLED can be used to forcibly enable vnc configuration.
|
||||
# In multi-node setups allows compute hosts to not run n-novnc.
|
||||
NOVA_VNC_ENABLED=$(trueorfalse False $NOVA_VNC_ENABLED)
|
||||
|
||||
# Get hypervisor configuration
|
||||
# ----------------------------
|
||||
|
||||
@ -485,7 +489,7 @@ function create_nova_conf {
|
||||
iniset $NOVA_CONF spice html5proxy_base_url "$SPICEHTML5PROXY_URL"
|
||||
fi
|
||||
|
||||
if is_service_enabled n-novnc || is_service_enabled n-xvnc; then
|
||||
if is_service_enabled n-novnc || is_service_enabled n-xvnc || [ "$NOVA_VNC_ENABLED" != False ]; then
|
||||
# Address on which instance vncservers will listen on compute hosts.
|
||||
# For multi-host, this should be the management ip of the compute host.
|
||||
VNCSERVER_LISTEN=${VNCSERVER_LISTEN=127.0.0.1}
|
||||
|
Loading…
Reference in New Issue
Block a user