Puppet Class: proton

Defined in:
puppet/modules/proton/manifests/init.pp

Overview

Class: proton

Sets up the Proton service which renders PDF files from web pages.

1

www.mediawiki.org/wiki/Proton

Parameters

port

The port proton listens

dir

Service directory

log_file

Log file.

Parameters:

  • port (Any)
  • dir (Any)
  • log_file (Any)


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

class proton(
    $port,
    $dir,
    $log_file,
) {
    include ::git
    require ::role::mediawiki

    require_package([
        'chromium',
        'fonts-liberation',
        'fonts-noto',
    ])

    service::node { 'proton':
        port        => $port,
        git_remote  => sprintf($::git::urlformat, 'mediawiki/services/chromium-render'),
        config      => template('proton/config.yaml.erb'),
        environment => {
            'APP_ENABLE_CANCELLABLE_PROMISES' => true,
            'PUPPETEER_EXECUTABLE_PATH'       => '/usr/bin/chromium',
        },
        require     => Package['chromium', 'fonts-liberation', 'fonts-noto'],
    }
}