Puppet Class: display::params

Inherited by:
display
display::xvfb
display::x11vnc
Defined in:
manifests/params.pp

Overview

Class: display::params

Display parameters.

Authors

Joshua Hoblitt <jhoblitt@cpan.org>

Copyright 2013 Joshua Hoblitt



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'manifests/params.pp', line 13

class display::params {
  $lc_osfamily         = downcase($::osfamily)
  $x11vnc_package_name = 'x11vnc'
  $xvfb_erb            = "display/${lc_osfamily}/xvfb.erb"
  $x11vnc_erb          = "display/${lc_osfamily}/x11vnc.erb"

  case $::osfamily {
    'redhat': {
      $xvfb_package_name = 'xorg-x11-server-Xvfb'
    }
    'debian': {
      $xvfb_package_name = 'xvfb'
    }
    default: {
      fail("Module ${module_name} is not supported on ${::operatingsystem}")
    }
  }
}