Puppet Class: role::svg

Defined in:
puppet/modules/role/manifests/svg.pp

Overview

Class: role::svg

Configures MediaWiki to allow SVG upload and rendering



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'puppet/modules/role/manifests/svg.pp', line 3

class role::svg {
    require_package('librsvg2-bin')

    mediawiki::settings { 'svg':
        ensure  => present,
        require => Package['librsvg2-bin'],
        values  => [
            '$wgEnableUploads = true',
            '$wgAllowTitlesInSVG = true',
            '$wgSVGConverter     = "rsvg"',
            '$wgSVGConverters["rsvg"] = \'$path/rsvg-convert -w $width -h $height $input -o $output\'',
            '$wgFileExtensions[] = "svg"',
        ],
    }
}