Puppet Class: role::wikitech

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

Overview

Class: role::wikitech

Provisions a MediaWiki instance similar to wikitech.wikimedia.org/.



5
6
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'puppet/modules/role/manifests/wikitech.pp', line 5

class role::wikitech {
    include ::role::categorytree
    include ::role::checkuser
    include ::role::cite
    include ::role::codeeditor
    include ::role::echo
    include ::role::gadgets
    include ::role::nuke
    include ::role::oathauth
    include ::role::parserfunctions
    include ::role::renameuser
    include ::role::scribunto
    include ::role::titleblacklist
    include ::role::wikieditor
    include ::role::wikilove

    mediawiki::extension { 'LdapAuthentication':
        needs_update => true,
        settings     => template('role/wikitech/LdapAuth.php.erb'),
    }

    # General wiki settings, OSM config
    mediawiki::settings { 'WikitechLocalSettings':
        values  => template('role/wikitech/Local.php.erb'),
    }

    # Secret OSM passwords (will need to change on the fly for
    # OpenStack integration).
    mediawiki::settings { 'WikitechPrivateSettings':
        values  => template('role/wikitech/Private.php.erb'),
    }

    mediawiki::settings { 'WikitechDebugSettings':
        values  => template('role/wikitech/Debug.php.erb'),
    }

    mediawiki::extension { [
        'Collection',
        'DynamicSidebar',
        'OpenStackManager',
    ]:
        needs_update  => true,
    }

    mediawiki::import::dump { 'wikitech_content':
        xml_dump           => '/vagrant/puppet/modules/role/files/wikitech/initial-pages.xml',
        dump_sentinel_page => 'Shell_Request/Andrew',
    }
}