Puppet Class: role::machinevision

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

Overview

Class: role::machinevision

Installs the MachineVision extension which supports collecting data about Commons images from internal and external machine vision services and storing it for on-wiki usage.



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

class role::machinevision {
    include ::role::mediainfo

    mediawiki::extension { 'MachineVision':
        needs_update => true,
        composer     => true,
    }

    mediawiki::import::text { 'VagrantRoleMachineVision':
        content => template('role/machinevision/VagrantRoleMachineVision.wiki.erb'),
    }

    apache::site_conf { 'Google Cloud Vision API credentials':
        site    => $::mediawiki::wiki_name,
        content => template('role/machinevision/apache2.conf.erb'),
    }
}