Puppet Class: role::mobilefrontend

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

Overview

Class: role::mobilefrontend

Configures MobileFrontend, the MediaWiki extension which powers Wikimedia mobile sites.

All wikis will have the MobileFrontend skin enabled based on user-agent switching. Additionally, a “mobile.wiki.local.wmftest.net” wiki is created which will always use the mobile skin reguardless of user-agent.



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

class role::mobilefrontend {
    require ::role::mediawiki
    include ::role::eventlogging
    include ::role::pageimages
    include ::role::textextracts
    include ::role::minerva

    mediawiki::extension { 'MobileFrontend':
        settings      => {
            wgMFLogEvents            => true,
            wgMFAutodetectMobileView => true,
            wgMFNearby               => true,
            wgMFEnableBeta           => true,
        },
        browser_tests => true,
    }

    mediawiki::wiki{ 'mobile': }

    mediawiki::settings { 'AlwaysMobileSkin':
        wiki   => 'mobile',
        values => {
            wgMFAutodetectMobileView => false,
            wgMFMobileHeader         => 'Host',
            wgMobileUrlTemplate      => "mobile${::mediawiki::multiwiki::base_domain}",
        },
    }
}