Puppet Class: role::visualeditor_wikimedia

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

Overview

Class: role::visualeditor_wikimedia

Provisions the VisualEditor extension in an environment similar to Wikimedia production (RESTBase, Citoid etc).

Note: this role is not multiwiki aware and will only work correctly on the default wiki.



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
# File 'puppet/modules/role/manifests/visualeditor_wikimedia.pp', line 7

class role::visualeditor_wikimedia {
    include ::role::visualeditor
    include ::role::templatedata
    include ::role::cite
    include ::role::citoid
    include ::role::parserfunctions
    include ::role::restbase
    include ::role::scribunto
    include ::role::uls

    mediawiki::settings { 'VisualEditor-Parsoid':
        priority => $::load_early,
        values   => {
            'wgVisualEditorParsoidURL' => $::parsoid::port,
        },
        wiki     => $::mediawiki::wiki_name,
    }

    mediawiki::extension { 'Citoid':
        settings => {
            wgCitoidServiceUrl => $::role::citoid::url,
        },
        wiki     => $::mediawiki::wiki_name,
    }
}