Puppet Class: role::globalcssjs

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

Overview

Class: role::globalcssjs

This role installs the GlobalCssJs extension on top of the CentralAuth extension.



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

class role::globalcssjs {
    require ::role::mediawiki
    include ::role::centralauth

    mediawiki::extension { 'GlobalCssJs':
        settings => [
            "\$wgResourceLoaderSources['wiki']['apiScript'] = '${::mediawiki::server_url}/w/api.php';",
            "\$wgResourceLoaderSources['wiki']['loadScript'] = '${::mediawiki::server_url}/w/load.php';",
            '$wgGlobalCssJsConfig["wiki"] = "wiki";',
            '$wgGlobalCssJsConfig["source"] = "wiki";',
        ],
    }
}