1 # == Class: nova::vncproxy::common
4 # (optional) The host of the VNC proxy server
7 # [*vncproxy_protocol*]
8 # (optional) The protocol to communicate with the VNC proxy server
12 # (optional) The port to communicate with the VNC proxy server
16 # (optional) The path at the end of the uri for communication with the VNC proxy server
17 # Defaults to '/vnc_auto.html'
19 class nova::vncproxy::common (
20 $vncproxy_host = undef,
21 $vncproxy_protocol = undef,
22 $vncproxy_port = undef,
23 $vncproxy_path = undef,
26 $vncproxy_host_real = pick(
28 $::nova::compute::vncproxy_host,
29 $::nova::vncproxy::host,
31 $vncproxy_protocol_real = pick(
33 $::nova::compute::vncproxy_protocol,
34 $::nova::vncproxy::vncproxy_protocol,
36 $vncproxy_port_real = pick(
38 $::nova::compute::vncproxy_port,
39 $::nova::vncproxy::port,
41 $vncproxy_path_real = pick(
43 $::nova::compute::vncproxy_path,
44 $::nova::vncproxy::vncproxy_path,
47 if ($vncproxy_host_real) {
48 $vncproxy_base_url = "${vncproxy_protocol_real}://${vncproxy_host_real}:${vncproxy_port_real}${vncproxy_path_real}"
49 # config for vnc proxy
51 'DEFAULT/novncproxy_base_url': value => $vncproxy_base_url;