Puppet Class: xvfb
- Defined in:
- puppet/modules/xvfb/manifests/init.pp
Overview
Class: xvfb
Xvfb or X virtual framebuffer is an X11 server that performs all graphical operations in memory, not showing any screen output. It's useful for automating graphical applications. This module configures a persistent Xvfb daemon.
Parameters
- display
-
X display number. Default: 99.
- resolution
-
Virtual framebuffer resolution, expressed as WIDTHxHEIGHTxDEPTH. Default: '1024x768x24'.
Examples
class { 'xvfb':
resolution => '800x600x16',
display => 100,
}
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 |
# File 'puppet/modules/xvfb/manifests/init.pp', line 24
class xvfb(
$display = 99,
$resolution = '1024x768x24',
) {
require_package('xvfb')
group { 'xvfb':
ensure => present,
}
user { 'xvfb':
ensure => present,
gid => 'xvfb',
shell => '/bin/false',
home => '/nonexistent',
system => true,
}
systemd::service { 'xvfb':
ensure => 'present',
require => [
Package['xvfb'],
User['xvfb'],
],
}
}
|