Files
puppet-nova/manifests/vncproxy.pp
Dan Bode c9757ec448 require sections are specified in nova_config
This massive code commit actually implements something very simple.

previously, we allowed nova_config to omit a section and assumed that
section was default.

This commit updates the code to require section names for all settings.

This change is being made b/c:
- it better maps to the config on disk
- it is consistent with the other modules

Change-Id: Iae71a4c48ed0f9792566f16f0bf13e61569b46e5
2013-04-12 15:06:58 -07:00

36 lines
819 B
Puppet

#
# configures nova vnc proxy
#
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;
}
package { 'python-numpy':
name => $::nova::params::numpy_package_name,
ensure => present,
}
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']
}
}