Puppet Class: role::psr3

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

Overview

Class: role::psr3

Sets up PSR-3 structured logging (similar to how it is done on Wikimedia wikis)



4
5
6
7
8
9
10
11
12
13
14
15
# File 'puppet/modules/role/manifests/psr3.pp', line 4

class role::psr3 {
    mediawiki::composer::require { 'monolog/monolog for psr3 role':
        package => 'monolog/monolog',
        version => '^1.22',
    }

    mediawiki::settings { 'psr3': # the elk role depends on this
        priority => 1,
        values   => template('role/psr3/settings.php.erb'),
        require  => Mediawiki::Composer::Require['monolog/monolog for psr3 role'],
    }
}