Puppet Class: display::x11vnc

Inherits:
display::params
Defined in:
manifests/x11vnc.pp

Overview

Class: display::x11vnc

Installs and configures x11vnc.

Authors

Alex Rodionov <p0deje@gmail.com>

Copyright 2013 Alex Rodionov.



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

class display::x11vnc inherits display::params {
  package { $display::params::x11vnc_package_name:
    alias  => 'x11vnc',
    ensure => present,
  }

  file { '/etc/init.d/x11vnc':
    content => template($display::params::x11vnc_erb),
    mode    => '0755',
    require => Package['x11vnc'],
    notify  => Service['x11vnc'],
  }

  service { 'x11vnc':
    ensure     => running,
    enable     => true,
    hasstatus  => true,
    hasrestart => true,
  }
}