Puppet Class: role::varnish

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

Overview

Class: role::varnish

Installs a Varnish instance To go through Varnish, use 127.0.0.1:6081 instead of 127.0.0.1:8080.



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

class role::varnish {
    include ::varnish

    mediawiki::settings { 'varnish':
        values => {
            'wgUploadBaseUrl' => 'http://127.0.0.1:6081',
            'wgUseSquid'      => true,
            # Address without port is needed for isTrustedProxy's sake
            'wgSquidServers'  => [ '127.0.0.1:6081', '127.0.0.1' ],
            # Makes X-Forwarded-For header trusted
            'wgUsePrivateIPs' => true,
        }
    }
}