Puppet Class: role::articleplaceholder

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

Overview

Class: role::articleplaceholder

The ArticlePlaceholder extension Generates placeholders from Wikidata items



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
29
30
31
# File 'puppet/modules/role/manifests/articleplaceholder.pp', line 4

class role::articleplaceholder {
    include ::role::wikidata
    include ::role::scribunto

    mediawiki::extension { 'ArticlePlaceholder':
        needs_update => true,
    }

    mediawiki::settings { 'Wikidata allowEntityImport':
        wiki     => 'wikidata',
        values   => {
            "wgWBRepoSettings['allowEntityImport']" => true,
        },
        priority => $::load_later,
    }

    mediawiki::import::dump { 'ImportImageProperty':
        xml_dump           => '/vagrant/mediawiki/extensions/ArticlePlaceholder/includes/Template/Wikidata-P18.xml',
        dump_sentinel_page => 'Property:P18',
        db_name            => 'wikidatawiki',
        wiki               => 'wikidata',
    }

    mediawiki::import::dump { 'ImportModuleAndTemplate':
        xml_dump           => '/vagrant/mediawiki/extensions/ArticlePlaceholder/includes/Template/aboutTopic-template-module.xml',
        dump_sentinel_page => 'Module:AboutTopic',
    }
}