Puppet Class: otrs::web

Defined in:
modules/otrs/manifests/web.pp

Overview

Actions:

Install the necessary apache modules, configure SSL

Requires:

Sample Usage:

include otrs::web


15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'modules/otrs/manifests/web.pp', line 15

class otrs::web {

    # We override the default mpm_prefork to set the apache setting for
    # MaxConnectionsPerChild. The chosen number is experimentally derived from
    # an OTRS suggested apache configuration example along with some experiments
    # Otherwise, OTRS memory leaks through the roof causing OOM to show up
    # We use the declarative form of the class instead of the inclusion to
    # explicitly show that we use the prefork mpm
    class { '::httpd::mpm':
        mpm    => 'prefork',
        source => 'puppet:///modules/otrs/mpm_prefork.conf',
    }

    # this site's cache_text proxies hostnames
    $cache_text_nodes = hiera('cache::text::nodes')
    $trusted_proxies = $cache_text_nodes[$::site]

    httpd::site { 'ticket.wikimedia.org':
        content => template('otrs/ticket.wikimedia.org.erb'),
    }
}