Puppet Class: xdummy

Defined in:
modules/xdummy/manifests/init.pp

Overview

Class: xdummy

Configure a persistent Xdummy daemon.

Xdummy is an X11 server that performs all graphical operations, including GLX, on a virtual display.

Parameters

display

X display number. Default: 95.

Examples

class { 'xdummy':
  display    => 86
}

Parameters:

  • display (Any) (defaults to: 95)


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
44
45
46
47
48
49
50
51
52
# File 'modules/xdummy/manifests/init.pp', line 19

class xdummy(
    $display    = 95
) {
    package { 'xorg':
        ensure => present,
    }

    package { 'xpra':
        ensure => present,
    }

    group { 'xdummy':
        ensure => present,
    }

    user { 'xdummy':
        ensure => present,
        gid    => 'xdummy',
        shell  => '/bin/false',
        home   => '/nonexistent',
        system => true,
    }

    systemd::service { 'xdummy':
        ensure  => present,
        restart => true,
        content => systemd_template('xdummy'),
        require => [
            Package['Xorg'],
            Package['xpra'],
            User['xdummy']
        ],
    }
}