Puppet Class: profile::proton

Defined in:
modules/profile/manifests/proton.pp

Overview

Class: profile::proton

This class installs and configures the Chromium-based PDF renderer service.



5
6
7
8
9
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
# File 'modules/profile/manifests/proton.pp', line 5

class profile::proton(
) {

    class { '::mediawiki::packages::fonts': }

    require_package('chromium')

    service::node { 'proton':
        port              => 24766,
        has_spec          => true,
        monitor_to        => 10,
        healthcheck_url   => '',
        deployment        => 'scap3',
        deployment_config => true,
        environment       => {
            'CHROME_BIN'                      => '/usr/bin/chromium',
            'APP_ENABLE_CANCELLABLE_PROMISES' => true,
        },
    }

    # font configuration section
    file { '/etc/fonts/conf.d/10-sub-pixel-rgb.conf':
        ensure => link,
        target => '/usr/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf',
    }
    file { '/etc/fonts/conf.d/10-unhinted.conf':
        ensure => link,
        target => '/usr/share/fontconfig/conf.avail/10-unhinted.conf',
    }

}