Puppet Class: display::params
- Inherited by:
-
display::env
display
display::xvfb
display::x11vnc
- Defined in:
- manifests/params.pp
Overview
Class: display::params
Display parameters. Private class.
Authors
Joshua Beard <beard@puppetlabs.com> Joshua Hoblitt <jhoblitt@cpan.org>
Copyright
Copyright © 2013-2014 Joshua Beard <beard@puppetlabs.com> Copyright © 2013-2014 Alex Rodionov <p0deje@gmail.com> Copyright © 2012-2014 Joshua Hoblitt <jhoblitt@cpan.org>
16 17 18 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 53 |
# File 'manifests/params.pp', line 16
class display::params {
$lc_osfamily = downcase($::osfamily)
$x11vnc_package_name = 'x11vnc'
$x11vnc_service_name = 'x11vnc'
$xvfb_erb = "display/${lc_osfamily}/xvfb.erb"
$x11vnc_erb = "display/${lc_osfamily}/x11vnc.erb"
$xvfb_service_name = 'xvfb'
$display = 0
$width = 1280
$height = 800
$color = '24+32'
$runuser = 'root'
$fbdir = '/tmp'
case $::osfamily {
'redhat': {
$xvfb_package_name = 'xorg-x11-server-Xvfb'
$xvfb_bin = '/usr/bin/Xvfb'
$x11vnc_bin = '/usr/bin/x11vnc'
$init_path = '/etc/init.d'
}
'debian': {
$xvfb_package_name = 'xvfb'
$xvfb_bin = '/usr/bin/Xvfb'
$x11vnc_bin = '/usr/bin/x11vnc'
$init_path = '/etc/init.d'
}
'freebsd': {
$xvfb_package_name = 'xorg-vfbserver'
$xvfb_bin = '/usr/local/bin/Xvfb'
$x11vnc_bin = '/usr/local/bin/x11vnc'
$init_path = '/usr/local/etc/rc.d'
}
default: {
fail("Module ${module_name} is not supported on ${::osfamily}")
}
}
}
|