Forge Home

xvfb

A puppet module to setup Xvfb.

8,439 downloads

8,271 latest version

1.8 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.2.0 (latest)
  • 0.1.0
released Nov 13th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'BernardoSilva-xvfb', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add BernardoSilva-xvfb
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install BernardoSilva-xvfb --version 0.2.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

BernardoSilva/xvfb — version 0.2.0 Nov 13th 2014

Puppet - Xvfb

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with xvfb
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

This module is very usefull if you want to install Xvfb to be able to run headless browsers. You can run your e2e tests with Protractor or other toll without worry if you touch keyboard or mouse affects the tests. Working on puppet 3.7.3

Module Description

This module purpose is to facilitate the instalation of Xvfb virtual frame buffer X.

Setup

Beginning with xvfb

If you include the xvfb class xvfb will be installed along with a init script:

include xvfb

Add to your manifest:

class {'xvfb':}

Usage

By default, only screen 0 exists and has the dimensions 1280x1024x8.

This will make server listen for connections as server number 99 and

create screen 1 and sets its width, height, and depth.

Note: Will have the default screen 0 default configuration (one screen, 1280x1024x8)

class {'xvfb':
  server_id => 99,   # default is 99
  screen_number => 1,   # default is 0
  width   => 1024, # default is 1280
  height  => 768,  # default is 800
  depth   => 8,   # default is "8" 
}

Check if Xvfb is running

$ sudo /etc/inid.d/xvfb status

Start Xvfb

$ sudo /etc/inid.d/xvfb start

Stop Xvfb

$ sudo /etc/inid.d/xvfb stop

Reference

Will create an init.d script in /etc/init.d/xvfb This will install the Xvfb virtual frame buffer X server on your system. Read more: http://www.x.org/archive/current/doc/man/man1/Xvfb.1.xhtml

Limitations

0.1.0 - Only tested on RedHat

Development

Just try to follow the standards and improve. :)

Contributors

You?