tripleo-image-elements/elements/nova-novncproxy/install.d/novnc-source-install/50-install-novnc
Dan Prince 1f9c1f7385 Make nova-novncproxy usable in a public cloud.
This refactors the nova-novncproxy configuration in TripleO
so that it can be used in a cloud where the compute hosts
don't each have to be assigned a public IP. With the
new configuration the nova-novncproxy is configured
to run on the nova-api (controller) node which
typically will have a public IP assigned to it.

Specific changes include:

 -move novnc element to nova-novncproxy
 -move all the nova-novncproxy stuff out of nova-kvm into
  the new nova-novncproxy element
 -configures Fedora iptables rules to support noVNC
  connections on 6080
 -Adds a new nova.public_ip parameter which is used
  to construct the novncproxy_base_url. This may be
  returned directly to cloud users via
  'nova get-vnc-console' or consumed by Horizon.
 -Set vncserver_proxyclient_address to the real
  local(internal) IP address for the compute host.
  Previously we used 127.0.0.1 which won't work
  unless nova-novncproxy runs on the Nova compute host.
  To do this we use {{local-ipv4}} which should always
  be the Heat provided local management IP address
  for the compute host.

Change-Id: I18cdc36248749390f0ab1e2c454741dbf2736e7f
Closes-bug: #1309510
2014-04-18 10:14:49 -04:00

13 lines
623 B
Bash
Executable File

#!/bin/bash
set -ex
os-svc-daemon -i "$NOVA_VENV_DIR" nova-novncproxy nova nova-novncproxy "--config-dir /etc/nova"
# nova-novncproxy looks in /usr/share/novnc by default
install -d -m 0755 -o root -g root /usr/share/novnc
install -m 0644 -o root -g root /opt/stack/novnc/favicon.ico /usr/share/novnc
install -m 0644 -o root -g root /opt/stack/novnc/*.html /usr/share/novnc
install -d -m 0755 -o root -g root /usr/share/novnc/include
install -m 0644 -o root -g root /opt/stack/novnc/include/*.css /usr/share/novnc/include
install -m 0644 -o root -g root /opt/stack/novnc/include/*.js /usr/share/novnc/include