Forge Home

weston

Install and manage weston

26 downloads

18 latest version

3.1 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 Jan 10th 2025
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2021.7.x
  • Puppet >= 7.24 < 9.0.0
  • , , , Debian, Ubuntu

Start using this module

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

Add this module to your Puppetfile:

mod 'jcpunk-weston', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jcpunk-weston
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jcpunk-weston --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
Tags: vnc, wayland

Documentation

jcpunk/weston — version 0.2.0 Jan 10th 2025

weston

Manage weston and remote desktops

Table of Contents

  1. Description
  2. Setup - The basics of getting started with weston
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module

Description

Weston itself isn't hard to manage. However, setting up workable remote desktop sessions under systemd can be tricky.

This module offers some classes to make this easier, with the complication that it is very prescriptive and opinionated about how this is done.

Setup

Setup Requirements

You will need weston in an available package repo.

Beginning with weston

To install the weston desktop, just include the weston module.

Usage

VNC Desktops

To create a VNC session include weston::vnc_server and set the following parameters:

weston::vnc_server::vnc_sessions:
  userA:
    comment: Sometimes you've gotta write it down
    displaynumber: 1
    ensure: running
    enable: true
    user_can_control_service: true
    extra_users_can_control_service:
      - userB
  userB:
    displaynumber: 5902

By default the service starting the VNC session is unmanaged. You can change the defaults via:

weston::vnc_server::default_vnc_service_ensure: running
weston::vnc_server::default_vnc_service_enable: true

By default users cannot manage the systemd service for their VNC session. You can grant them access to run systemctl stop/start/restart weston-vncserver@${username} one user at a time. If you would prefer to do it automatically for all users set:

weston::vnc_server::default_user_can_control_service: true

Limitations

This module expect VNC to use ports starting at 5900.

For working with VNC desktops, you'll probably want to setup a ~/.config/weston.ini with the following options:

[shell]
locking=false

as the VNC session will already be protected by PAM.

Development

See the linked repo from metadata.json