Puppet Class: role::molhandler

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

Overview

Class: role::molhandler

Configures MolHandler, an extension for embedding chemical table files in MediaWiki.



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'puppet/modules/role/manifests/molhandler.pp', line 4

class role::molhandler {
    include ::role::svg

    require_package('indigo-utils')
    require_package('openbabel')

    mediawiki::extension { 'MolHandler':
        settings => [
            '$wgApiFrameOptions = \'SAMEORIGIN\'',
            '$wgFileExtensions = array_merge( $wgFileExtensions, array( \'mol\', \'rxn\' ) )',
        ],
        require  => [
            Package['indigo-utils'],
            Package['openbabel'],
        ],
    }
}