Puppet Class: role::zero

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

Overview

Class: role::zero

Configures Zero for local use



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

class role::zero {
    include ::role::graph
    include ::role::jsonconfig
    include ::role::langwikis
    include ::role::mobilefrontend
    include ::role::parserfunctions
    include ::role::scribunto
    include ::role::thumb_on_404

    mediawiki::extension { 'ZeroBanner':
        priority => $::load_later, # Must be after JsonConfig & MobileFrontEnd
        settings => [
            '$wgMobileUrlTemplate = "%h0.m.%h1.%h2"',
            '$wgZeroSiteOverride = array( "wikipedia", "en" )',
            '$wgGroupPermissions["sysop"]["zero-edit"] = true',
            '$wgGroupPermissions["sysop"]["zero-script"] = true',
        ],
    }

    mediawiki::extension { 'ZeroPortal':
        priority => $::load_last, # Must be after ZeroBanner
        settings => [
            '$wgRawHtml = true',
        ],
    }
}