
This patch fixes all remaining parameter documentation in the nova module to be compatible with puppet-doc and documents all parameters in a standard way. Change-Id: I451078d46cb2498dd8e3c23bd8cbcc81b8845fcd
56 lines
1.3 KiB
Puppet
56 lines
1.3 KiB
Puppet
# == Class: nova:vncproxy
|
|
#
|
|
# Configures nova vnc proxy
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*enabled*]
|
|
# (optional) Whether to run the vncproxy service
|
|
# Defaults to false
|
|
#
|
|
# [*host*]
|
|
# (optional) Host on which to listen for incoming requests
|
|
# Defaults to '0.0.0.0'
|
|
#
|
|
# [*port*]
|
|
# (optional) Port on which to listen for incoming requests
|
|
# Defaults to '6080'
|
|
#
|
|
# [*ensure_package*]
|
|
# (optional) The state of the nova-novncproxy package
|
|
# Defaults to 'present'
|
|
#
|
|
class nova::vncproxy(
|
|
$enabled = false,
|
|
$host = '0.0.0.0',
|
|
$port = '6080',
|
|
$ensure_package = 'present'
|
|
) {
|
|
|
|
include nova::params
|
|
|
|
# TODO make this work on Fedora
|
|
|
|
# See http://nova.openstack.org/runnova/vncconsole.html for more details.
|
|
|
|
nova_config {
|
|
'DEFAULT/novncproxy_host': value => $host;
|
|
'DEFAULT/novncproxy_port': value => $port;
|
|
}
|
|
|
|
if ! defined(Package['python-numpy']) {
|
|
package { 'python-numpy':
|
|
ensure => present,
|
|
name => $::nova::params::numpy_package_name,
|
|
}
|
|
}
|
|
nova::generic_service { 'vncproxy':
|
|
enabled => $enabled,
|
|
package_name => $::nova::params::vncproxy_package_name,
|
|
service_name => $::nova::params::vncproxy_service_name,
|
|
ensure_package => $ensure_package,
|
|
require => Package['python-numpy']
|
|
}
|
|
|
|
}
|