Puppet Class: role::timedmediahandler

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

Overview

Class: role::timedmediahandler

This role provisions the TimedMediaHandler extension, which displays audio and video files and their captions.



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'puppet/modules/role/manifests/timedmediahandler.pp', line 4

class role::timedmediahandler {
    include ::role::multimedia

    require_package('ffmpeg')
    require_package('fluidsynth')
    require_package('fluid-soundfont-gm')

    mediawiki::extension { 'TimedMediaHandler':
        settings     => {
            wgWaitTimeForTranscodeReset => 1,
            wgFFmpegLocation            => '/usr/bin/ffmpeg',
            wgTmhFluidsynthLocation     => '/usr/bin/fluidsynth',
            wgTmhSoundfontLocation      => '/usr/share/sounds/sf2/FluidR3_GM.sf2'
        },
        needs_update => true,
        composer     => true,
        require      => [
            Package['ffmpeg'],
            Package['fluidsynth'],
            Package['fluid-soundfont-gm']
        ],
    }
}