Puppet Class: role::visualeditor

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

Overview

Class: role::visualeditor

Provisions the VisualEditor extension, backed by a local RESTBase service and Parsoid instance.

Note: this role is not multiwiki aware and will only work 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.pp', line 7

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

    mediawiki::extension { 'VisualEditor':
        settings      => template('role/visualeditor/conf.php.erb'),
        browser_tests => 'modules/ve-mw/tests/browser',
        priority      => $::load_early,
        wiki          => $::mediawiki::wiki_name,
    }


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