Files
puppet-nova/manifests/compute/serial.pp
Ivan Chavero f95548589d Add serialproxy configuration
Configure the serial proxy feature recently added
in Juno

There's no built in way in openstack to test this.
to check the patch you'll need this utility:
https://github.com/larsks/novaconsole/

Change-Id: I593ebb0f4ce8cae00671230022516f9bbcbe4e9a
2015-01-14 09:35:29 -07:00

41 lines
1.1 KiB
Puppet

# == Class: nova::compute::serial
#
# Configures nova serial console
#
# === Parameters:
#
# [*port_range]
# (optional) Range of TCP ports to use for serial ports on compute hosts
# Defaults to 10000:20000
#
# [*base_url*]
# (optional) URL that gets passed to the clients
# Defaults to 'ws://127.0.0.1:6083/'
#
# [*listen]
# IP address on which instance serial console should listen
# Defaults to 127.0.0.1
#
# [*proxyclient_address*]
# The address to which proxy clients (like nova-serialproxy)
# should connect (string value)
# Defaults to 127.0.0.1
class nova::compute::serial(
$port_range = '10000:20000',
$base_url = 'ws://127.0.0.1:6083/',
$listen = '127.0.0.1',
$proxyclient_address = '127.0.0.1',
) {
nova_config {
'serial_console/enabled': value => true;
'serial_console/port_range': value => $port_range;
'serial_console/base_url': value => $base_url;
'serial_console/listen': value => $listen;
'serial_console/proxyclient_address': value => $proxyclient_address;
}
}