Puppet Class: weston

Inherited by:
weston::vnc_server
Defined in:
manifests/init.pp

Summary

Install the weston desktop

Overview

Simply install the weston desktop

Examples:

include weston

Parameters:

  • manage_packages (Boolean) (defaults to: true)

    Should this module even care about the packages?

  • package_names (Array[String[1]]) (defaults to: ['weston'])

    Packages to install

  • packages_ensure (Stdlib::Ensure::Package) (defaults to: 'present')

    What to ensure for the packages

  • manage_weston_ini (Boolean) (defaults to: false)

    Should we write out a global weston config?

  • weston_ini_path (Stdlib::Absolutepath) (defaults to: '/etc/xdg/weston/weston.ini')

    Where is the global weston.ini

  • weston_ini_owner (String) (defaults to: 'root')

    Probably root

  • weston_ini_group (String) (defaults to: 'root')

    Probably root

  • weston_ini_mode (String) (defaults to: '0644')

    This should be world readable

  • weston_ini_settings (Hash) (defaults to: {})

    A hash of the settings you want. weston::weston_ini_settings:

    shell:
      'clock-format': 'seconds-24h'
    


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
# File 'manifests/init.pp', line 30

class weston (
  Boolean $manage_packages = true,
  Array[String[1]] $package_names = ['weston'],
  Stdlib::Ensure::Package $packages_ensure = 'present',
  Boolean $manage_weston_ini = false,
  Stdlib::Absolutepath $weston_ini_path = '/etc/xdg/weston/weston.ini',
  String $weston_ini_owner = 'root',
  String $weston_ini_group = 'root',
  String $weston_ini_mode = '0644',
  Hash $weston_ini_settings = {},
) {
  if $manage_packages {
    package { $package_names:
      ensure => $packages_ensure,
    }
  }

  if $manage_weston_ini {
    file { $weston_ini_path:
      ensure  => 'file',
      owner   => $weston_ini_owner,
      group   => $weston_ini_group,
      mode    => $weston_ini_mode,
      content => epp('weston/etc/xdg/weston/weston.ini.epp', { 'stanzas' => $weston_ini_settings }),
    }
  }
}