Puppet Class: tigervnc

Defined in:
manifests/init.pp

Overview

Class: tigervnc

Main class that includes all other classes for the tigervnc module.

Parameters:

  • manage_vncuser_passwords (Boolean) (defaults to: true)

    Whether or not to set user vncpasswd files to an initial value.

  • package_ensure (String) (defaults to: 'present')

    Whether to install the tigervnc package, and/or what version. Values: 'present', 'latest', or a specific version number.

  • package_name (String) (defaults to: 'tigervnc-server')

    Specifies the name of the package to install.

  • service_enable (Boolean) (defaults to: true)

    Whether to enable the tigervnc service at boot.

  • service_ensure (Enum['running', 'stopped']) (defaults to: 'running')

    Whether the tigervnc service should be running.

  • service_name (String) (defaults to: 'vncserver')

    Specifies the name of the service to manage.

  • sysconfig_template (String) (defaults to: 'tigervnc/sysconfig_vncservers.erb')

    Specifies the template to use for /etc/sysconfig/vncservers.

  • user_homedir_path (Stdlib::Unixpath) (defaults to: '/home')

    Specifies the path where the user home directories are located.

  • vncservers (Hash)

    Hash of hashes that specifies vncservers and associated properties.

  • vncuser_default_passwd (String) (defaults to: 'ChangeMe')

    Default password to use for vnc session passwords.



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

class tigervnc (
  Hash                       $vncservers,
  Boolean                    $manage_vncuser_passwords = true,
  String                     $package_ensure           = 'present',
  String                     $package_name             = 'tigervnc-server',
  Boolean                    $service_enable           = true,
  Enum['running', 'stopped'] $service_ensure           = 'running',
  String                     $service_name             = 'vncserver',
  String                     $sysconfig_template       = 'tigervnc/sysconfig_vncservers.erb',
  Stdlib::Unixpath           $user_homedir_path        = '/home', 
  String                     $vncuser_default_passwd   = 'ChangeMe',
  ) {
  case $::operatingsystem {
    'RedHat', 'CentOS': {
      contain tigervnc::install
      contain tigervnc::config
      contain tigervnc::service

      Class['tigervnc::install']
      -> Class['tigervnc::config']
      ~> Class['tigervnc::service']
    }
    default: {
      fail("${::operatingsystem} not supported")
    }
  }
}