serial.pp 934 B

1234567891011121314151617181920212223242526272829303132333435
  1. # == Class: nova::compute::serial
  2. #
  3. # Configures nova serial console
  4. #
  5. # === Parameters:
  6. #
  7. # [*port_range*]
  8. # (optional) Range of TCP ports to use for serial ports on compute hosts
  9. # Defaults to 10000:20000
  10. #
  11. # [*base_url*]
  12. # (optional) URL that gets passed to the clients
  13. # Defaults to 'ws://127.0.0.1:6083/'
  14. #
  15. # [*proxyclient_address*]
  16. # The address to which proxy clients (like nova-serialproxy)
  17. # should connect (string value)
  18. # Defaults to 127.0.0.1
  19. #
  20. class nova::compute::serial(
  21. $port_range = '10000:20000',
  22. $base_url = 'ws://127.0.0.1:6083/',
  23. $proxyclient_address = '127.0.0.1',
  24. ) {
  25. include ::nova::deps
  26. nova_config {
  27. 'serial_console/enabled': value => true;
  28. 'serial_console/port_range': value => $port_range;
  29. 'serial_console/base_url': value => $base_url;
  30. 'serial_console/proxyclient_address': value => $proxyclient_address;
  31. }
  32. }