Puppet Class: role::uploadwizard

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

Overview

Class: role::uploadwizard

Configures a MediaWiki instance with UploadWizard a JavaScript-driven wizard interface for uploading multiple files.



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
36
37
38
39
40
# File 'puppet/modules/role/manifests/uploadwizard.pp', line 5

class role::uploadwizard {
    include ::wikitools
    include ::role::campaigns
    include ::role::eventlogging
    include ::role::multimedia
    include ::role::codeeditor
    include ::role::titleblacklist

    # API smoke test dependencies
    require_package('python3-pil')
    require_package('python-poster')

    mediawiki::extension { 'UploadWizard':
        settings      => {
            wgAllowCopyUploads    => true,
            wgEnableUploads       => true,
            wgUploadNavigationUrl => '/wiki/Special:UploadWizard',
            wgApiFrameOptions     => 'SAMEORIGIN',
            wgUploadWizardConfig  => {
                altUploadForm       => 'Special:Upload',
                autoCategory        => 'Uploaded with UploadWizard',
                enableChunked       => 'opt-in',
                enableFormData      => true,
                enableMultipleFiles => true,
                flickrApiKey        => 'b22fa793bf3189dadcd6fe2837843534',
            },
        },
    }

    mediawiki::settings { 'UploadWizard permissions':
        values => [
            '$wgGroupPermissions["user"]["upload"] = true;',
            '$wgGroupPermissions["user"]["upload_by_url"] = true;',
        ],
    }
}