Puppet Class: html5depurate

Defined in:
modules/html5depurate/manifests/init.pp

Overview

Class for installing an Html5Depurate service www.mediawiki.org/wiki/Html5Depurate

Parameters:

- $listen_host: The IP address or hostname to listen on. Use 0.0.0.0 for
  a public service. Note that there is no authentication.
- $port: The port to listen on
- $max_memory_mb: The maximum memory used by the Java VM, in megabytes

Parameters:

  • listen_host (Any) (defaults to: '127.0.0.1')
  • port (Any) (defaults to: 4339)
  • max_memory_mb (Any) (defaults to: 500)


10
11
12
13
14
15
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
# File 'modules/html5depurate/manifests/init.pp', line 10

class html5depurate(
    $listen_host = '127.0.0.1',
    $port  = 4339,
    $max_memory_mb = 500
)
{
    package { 'html5depurate':
        ensure      => installed,
    }

    file { '/etc/html5depurate/html5depurate.conf':
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        require => Package['html5depurate'],
        content => template('html5depurate/html5depurate.conf.erb'),
        notify  => Service['html5depurate'],
    }

    file { '/etc/html5depurate/security.policy':
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        require => Package['html5depurate'],
        content => template('html5depurate/security.policy.erb'),
        notify  => Service['html5depurate'],
    }

    file { '/etc/default/html5depurate':
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        require => Package['html5depurate'],
        content => template('html5depurate/default.erb'),
        notify  => Service['html5depurate'],
    }

    service { 'html5depurate':
        ensure  => running,
        require => Package['html5depurate'],
    }
}