b06c016fff07f119905f2cfff28d3ee4e68a0a58
[mirror/dsa-puppet.git] / 3rdparty / modules / nova / manifests / spicehtml5proxy.pp
1 #  == Class: nova::spice
2 #
3 # Configure spicehtml5 proxy
4 #
5 # SPICE is a new protocol which aims to address all the limitations in VNC,
6 # to provide good remote desktop support. This class aim to configure the nova
7 # services in charge of proxing websocket spicehtml5 request to kvm spice
8 #
9 # === Parameters:
10 #
11 # [*enabled*]
12 #   (optional) enable spicehtml5proxy service
13 #   true/false
14 #
15 # [*manage_service*]
16 #   (optional) Whether to start/stop the service
17 #   Defaults to true
18 #
19 # [*host*]
20 #   (optional) Listen address for the html5 console proxy
21 #   Defaults to 0.0.0.0
22 #
23 # [*port*]
24 #   (optional) Listen port for the html5 console proxy
25 #   Defaults to 6082
26 #
27 # [*ensure_package*]
28 #   (optional) Ensure package state
29 #   Defaults to 'present'
30 #
31 class nova::spicehtml5proxy(
32   $enabled        = false,
33   $manage_service = true,
34   $host           = '0.0.0.0',
35   $port           = '6082',
36   $ensure_package = 'present'
37 ) {
38
39   include nova::params
40
41   nova_config {
42     'DEFAULT/spicehtml5proxy_host': value => $host;
43     'DEFAULT/spicehtml5proxy_port': value => $port;
44   }
45
46   nova::generic_service { 'spicehtml5proxy':
47     enabled        => $enabled,
48     manage_service => $manage_service,
49     package_name   => $::nova::params::spicehtml5proxy_package_name,
50     service_name   => $::nova::params::spicehtml5proxy_service_name,
51     ensure_package => $ensure_package,
52   }
53 }
54