Puppet Class: xvfb

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

Overview

Class: xvfb

Configure a persistent Xvfb daemon.

Xvfb (or X virtual framebuffer) is an X11 server that performs all graphical operations in memory, not showing any screen output.

Parameters

display

X display number. Default: 99.

resolution

Virtual framebuffer resolution, expressed as WIDTHxHEIGHTxDEPTH. Default: '1024x768x24'.

Examples

class { 'xvfb':
  display    => 85,
  resolution => '800x600x16',
}

Parameters:

  • display (Any) (defaults to: 99)
  • resolution (Any) (defaults to: '1024x768x24')


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
53
54
55
56
57
58
59
# File 'modules/xvfb/manifests/init.pp', line 24

class xvfb(
    $display    = 99,
    $resolution = '1024x768x24',
) {
    package { 'xvfb':
        ensure => present,
    }

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

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

    systemd::service { 'xvfb':
        ensure         => present,
        restart        => true,
        content        => systemd_template('xvfb'),
        service_params => {
            # enable is needed to have the service to start on boot time.
            enable     => true,
            hasstatus  => true,
            hasrestart => true,
        },
        require        => [
            Package['xvfb'],
            User['xvfb']
        ],
    }
}