1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# @summary VNC Server configuration
#
# @param enabled
# True if VNC connections should be allowed
# @param command
# Command to run Xvnc server with
# @param port
# TCP/IP port to listen for connections on
# @param listen_address
# Host/address to listen for VNC connections (use all addresses if not present)
# @param width
# Width of display to use
# @param height
# Height of display to use
# @param depth
# Color depth of display to use
class lightdm::vncserver (
Boolean $enabled = false,
Optional[String] $command = undef,
Optional[Stdlib::Port] $port = undef,
Optional[String] $listen_address = undef,
Optional[Integer[0]] $width = undef,
Optional[Integer[0]] $height = undef,
Optional[Integer[0]] $depth = undef,
) {
$conf = {
'enabled' => $enabled,
'command' => $command,
'port' => $port,
'listen-address' => $listen_address,
'width' => $width,
'height' => $height,
'depth' => $depth,
}
concat::fragment { 'lightdm - config - vncserver':
target => $lightdm::config::filename,
order => $lightdm::conf::seat_fragment_min + 2,
content => {
sections => { 'VNCServer' => $conf },
},
}
}
|