Puppet Class: role::mediainfo

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

Overview

Class: role::mediainfo

This role sets up a Wikibase repo with the WikibaseMediaInfo extension enabled.

THIS IS A PROTOTYPE!



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'puppet/modules/role/manifests/mediainfo.pp', line 7

class role::mediainfo {
  include ::role::wikibase_repo

  mediawiki::extension { 'WikibaseMediaInfo':
    composer     => true,
    needs_update => true,
    settings     => [ '$wgEnableUploads = true' ],
  }

  mediawiki::maintenance { 'MediaInfo-CreatePageProps':
    command     => '/usr/local/bin/foreachwikiwithextension WikibaseMediaInfo extensions/WikibaseMediaInfo/maintenance/CreatePageProps.php',
    refreshonly => true,
  }

  Mediawiki::Wiki<| |> ~> Mediawiki::Maintenance['MediaInfo-CreatePageProps']
}